I''m using Rails 2.3.2 with a form to edit a Page object: <% form_for([:admin, @page], :class => "form") do |f| %> #... <% end %> In that form I''m also using fields_for/nested models. I want the ability in the form to have a link_to_remote that calls a partial that has the fields_for related to the nested model. I can''t use a link_to_function, because I need the ability to add an unlimited number of the partial and I end up getting a stack level too deep error. So my question is this: is it possible to pass the formbuilder object (f) to the controller via a link_to_remote so when the ajax call displays the partial, it can pass the formbuilder object to the partial? -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Tue, 31 Mar 2009 19:49:33 +0200 Will Clark <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> So my question is this: is it possible to pass the formbuilder object > (f) to the controller via a link_to_remote so when the ajax call > displays the partial, it can pass the formbuilder object to the partial?Nope. But you can always just use the older "text_field_tag" type methods in your partial. SH. -- Starr Horne Check out my Helpdesk RailsKit: http://railskits.com/helpdesk/ --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---