In Rails 3, I have a form that has a menu on it.  I would like to
render an area containing text fields within the form differently
depending on what's selected in the menu.

Prior to Rails 3, one way it appears I could do this is by using
observe_field on the menu and call an action in my controller that
renders the appropriate partial which could then be swapped into a div
in my form.  In Rails 3, I'm not getting any further with this
approach than the following error when I try to display the view the
first time:

undefined method `observe_field'

Am I on the right track, or is there a new and improved, UJS-correct
way of doing this in Rails 3?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to