Re: [Rails] Newline in string ...

2011-07-08 Thread rajeevsharma86
Try something like this <%= content_tag(:div, content_tag(:p, "Our programme notes are being prepared.", :class => 'regtextend'), :id => 'notes').html_safe %> Or <%= raw content_tag(:div, content_tag(:p, "Our programme notes are being prepared.", :class => 'regtextend'), :id => 'notes').html_safe

Re: [Rails] Newline in string ...

2011-07-08 Thread radhames brito
Why would it? is html what gets rendered, use and end the string with html_safe -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send

[Rails] Newline in string ...

2011-07-07 Thread shungite
Hello, The following is a toggle div, in which I'm trying to add a newline after the word 'notes:' <%= content_tag(:div, content_tag(:p, "Our programme notes are being prepared.", :class => 'regtextend'), :id => 'notes') %> And this doesn't work: <%= content_tag(:div, content_tag(:p, "Our progr