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

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

Reply via email to