Make prompt / logging work correctly in both rails 2 and 3