FF wrote: [...] > For new object the name of the form is "new_order", for editing is > "edit_order_19" (19 is an ID for the "order" object) > The name of the form is depending of the object the view is editing > and I need the name for the Observe_field work properly in all > records. > How can I pass the name of the form as a variable to the controller ?
You don't need to. Pass it in :locals when you render the partial. > > Thanks > FF Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

