Forum: Ruby on Rails page << HTML

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
832ed6ace46d61032151f4e1864c057f?d=identicon&s=25 Solid (Guest)
on 2007-07-26 20:15
(Received via mailing list)
Hello again,

How I can convert HTML to backslashed HTML. For example, I have:

page << 'new Insertion.After($$("#questionTable tbody").first(), ' +
render(:partial => 'question', :locals => { :q => question_copy }) +
');'

I need to backslash quotas in render method.

Thank you for help,
Dmitry
2b891e820c238ded365d035771603f21?d=identicon&s=25 Bill Walton (Guest)
on 2007-07-27 04:08
(Received via mailing list)
Hi Dmitry,

Solid wrote:

> How I can convert HTML to backslashed HTML.
> For example, I have:
>
> page << 'new Insertion.After($$("#questionTable tbody").first(), ' +
> render(:partial => 'question', :locals => { :q => question_copy }) +
> ');'
>
> I need to backslash quotas in render method.

That's not how we do it in Rails.  I'd recommend picking up Cody
Fauser's
"Rails Templates" from O'Reilly.  Great and cheap PDF.

HTH,
Bill
832ed6ace46d61032151f4e1864c057f?d=identicon&s=25 Solid (Guest)
on 2007-07-27 09:55
(Received via mailing list)
So you suggest me to write a helper for this simple function?

Please, also read my topic:
http://groups.google.ca/group/rubyonrails-talk/bro...
This topic is locked and can not be replied to.