FF wrote:
> 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 results
>
> Can you explain how I shoud to use :locals variable ?
Easy. Just put Form.serialized(object_name) in the partial instead of
hard-coding. Then you can do :locals => {:object_name =>
'edit_order_19'} or whatever. Remember, it's just a string.
> Thanks,
> FF
>
>
> On 28 sep, 19:44, Marnen Laibow-Koser <rails-mailing-l...@andreas-
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
-~----------~----~----~----~------~----~------~--~---