Please, post your view here: www.pastie.org This error is a indentation error. Are you using 2 spaces? (no tabs)
2009/8/3 Noel <[email protected]> > > tried > > javascript: > alert(#...@user_session.errors.full_messages.join("\n").to_json}); > > did not work, no alert, but then I thought of looking in the terminal > and noticed an error. > > ActionView::TemplateError (Illegal nesting: nesting within plain text > is illegal.) on line #2... > > So it looks like that was the problem. > > Thanks, > Noel > > On Mon, Aug 3, 2009 at 4:23 PM, G. Sobrinho<[email protected]> > wrote: > > You can use > > :javascript > > alert(#...@user_session.errors.full_messages.join("\n").to_json}); > > > > 2009/8/3 Noel <[email protected]> > >> > >> In erb I can do > >> > >> alert("<%= @user_session.errors.full_messages %>"); > >> > >> How would I do this in HAML > >> > >> I tried > >> > >> javascript: > >> alert(" @user_session.errors.full_messages "); > >> > >> even if I try this it doesn't work. > >> javascript: > >> alert("hello"); > >> > >> BTW, I am returning this to an AJAX call via a respond_to block. > >> > >> What am I doing wrong? > >> > >> -Noel > >> > >> > > > > > > > > -- > > Regards, > > > > Gabriel Sobrinho > > +55 31 8775 8378 > > > > > > > > > > > -- Regards, Gabriel Sobrinho +55 31 8775 8378 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/haml?hl=en -~----------~----~----~----~------~----~------~--~---
