Page << HTML


#1

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


#2

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


#3

So you suggest me to write a helper for this simple function?

Please, also read my topic:
http://groups.google.ca/group/rubyonrails-talk/browse_thread/thread/a7da0c3633cca760/0e68cf70cec4c256