[Rails] Re: Text field formatting
Oops.
<%= "#{@formatted_question[:question].gsub(/\n/, '<br/>').html_safe}" %>
On Wednesday, September 11, 2013 8:46:16 AM UTC-4, jsnark wrote:
-- <%= "#{@formatted_question[:question].gsub(/\n/, '<br/>').html_safe}" %>
On Wednesday, September 11, 2013 8:46:16 AM UTC-4, jsnark wrote:
<%= "#{@formatted_question[:question].gsub(/\n/, '<br/>')}" %>
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5f0a91ea-85d7-432a-aefa-d1983901c422%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home