Hi,

I am trying to figure out how to convert line breaks  to html line
breaks ie <br>

The text is imput and saved as:
Which structures traverse above the annulus of Zinn?
A) Lacrimal nerve
B) Frontal nerve
C) Nasociliary nerve
D) CN IV
E) CN III

but, I have a text field in my show action view with the following:
<%= "#{@formatted_question[:question]}" %>

which produces:
Which structures traverse above the annulus of Zinn? A) Lacrimal nerve
B) Frontal nerve C) Nasociliary nerve D) CN IV E) CN III

The line breaks are still there, they just aren't being converted to
HTML line breaks.  I can see them when I view the source.

How can I get the line breaks back??

Thanks,
Dave

-- 
Posted via http://www.ruby-forum.com/.

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/7d22b9b10c49cb35912d5238c53fe44a%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to