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
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