I need all the form values for the field in the observe_form call. ...
.. Form.serialize('new_order')...
because the controller must to do some calcs and refresh the form with
the resultsCan you explain how I shoud to use :locals variable ? Thanks, FF On 28 sep, 19:44, Marnen Laibow-Koser <rails-mailing-l...@andreas- s.net> wrote: > 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-Koserhttp://www.marnen.org > [email protected] > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---

