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

Reply via email to