:locals not working ?

0 views
Skip to first unread message

mixandgo

unread,
Mar 11, 2009, 6:13:13 AM3/11/09
to attribute_fu
Hi,

I am trying to pass a local variable to the partial and it looks
like it's not working. Is this a known bug ?

Here's my call :

<%= f.render_associated_form(@model, :locals => {:first_element =>
true}) %>

Error: undefined local variable or method `first_element' for
#<ActionView::Base:0x34878c8>

Thanks,
Cezar
Reply all
Reply to author
Forward
0 new messages