Thursday, August 13, 2009

How to prevent the active_record output in rails console

end the statements with ; nil

Eg: list = Blog.find(:all)
list.each do |x|
puts x.title
end ; nil

No comments:

Post a Comment