Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Changed show view to display simple_format instead of <pre> #1354
When large amount of text are inserted in - lets say - textarea, each paragraph is single line and it's extended well over the browser's edge.
I've changed the
tag with div and formated the text with rails helper 'simple_format' and inserted it in div element with 'field_content' css style. Also created css style tag.
added a commit
this pull request
Oct 12, 2012
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
Reverted in 3d5bb94
I guess field.pretty_value is not always a string?