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 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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 On Jul 27, 5:07 am, "Bill Walton" <bill.wal...-xwVYE8SWAR3R7s880joybQ@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---