Ruby on Rails Thursday, September 2, 2010

On 2 September 2010 20:17, proximal <lph.engelmann@gmail.com> wrote:
> 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 ?

In what sense is :company calling the method? It is the view code
that is calling it.

Colin

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

No comments:

Post a Comment