G
Greg Hauptmann
[Note: parts of this message were removed to make it a legal post.]
Hi,
I note rails console shows "\n" rather than putting in new line? For
example:
?> Category.find
first).to_yaml
=> "--- !ruby/object:Category \nattributes: \n updated_at: 2009-01-20
03:39:22\n tax_item_id: \n category_type_id: \"2\"\n title: Investment\n id:
\"1\"\n category_id: \n category_group_id: \"5\"\n created_at: 2009-01-20
03:39:22\n active: \"0\"\nattributes_cache: {}\n\n"
I note that if you "puts" the same thing from an Rspec test it formats fine
(with new lines)
Question: Is there a way to change this for the console?
Hi,
I note rails console shows "\n" rather than putting in new line? For
example:
?> Category.find
=> "--- !ruby/object:Category \nattributes: \n updated_at: 2009-01-20
03:39:22\n tax_item_id: \n category_type_id: \"2\"\n title: Investment\n id:
\"1\"\n category_id: \n category_group_id: \"5\"\n created_at: 2009-01-20
03:39:22\n active: \"0\"\nattributes_cache: {}\n\n"
I note that if you "puts" the same thing from an Rspec test it formats fine
(with new lines)
Question: Is there a way to change this for the console?