Problem with Params

30 views
Skip to first unread message

Abel_Antonio

unread,
Dec 30, 2009, 12:29:37 PM12/30/09
to Haml
hi, i need some help

I'm working with Ruby On Rails with HAML, i need to send some params,
from my view to my controller through a param, in html i used to put
the value ( an object ) and in order to have the value of the objet i
used <%= user.id %> so i will have the value and not the position, now
with Haml i try %= and is not accepted by haml, at the documentation
use = for print the value but, it doesn't work, what i want to have or
print is the value and not the position of that object.

I'm so glad that you can help, thanks

Nathan Weizenbaum

unread,
Dec 30, 2009, 3:18:23 PM12/30/09
to ha...@googlegroups.com
= in Haml should work exactly the same as <%= %> in ERB. What's the exact code you used, the output you expected, and the output you actually got?


--

You received this message because you are subscribed to the Google Groups "Haml" group.
To post to this group, send email to ha...@googlegroups.com.
To unsubscribe from this group, send email to haml+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.



Reply all
Reply to author
Forward
0 new messages