Ruby on Rails
Thursday, September 2, 2010
I have a view calling a helper method is_disabled like this :
<%= form.input :company, :label => "Company name", :input_html =>
{ :disabled => is_disabled } %>
How can I determine in my helper which element (here :company) is
calling the is_disabled method without having to pass a parameter ?
Thx by advance for your help.
--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment