I'm trying to create a nested remote_form within another non-remote form in one of my RoR apps. It looks likes this:
form_for @event do |f|
f.text_field :name
remote_form_for @location do |d|
d.text_field :address
d.submit
f.text_area :another
f.submit
end
Of course it's more complicated than this, but it's along the same lines. I want a user to be able to create a new "location" (or edit a previous one) remotely, while they are filling out the "event" form.
The problem is that it that the remote_form_for's 'form' tag's aren't even created. The only thing I can see in the HTML is the hidden authenticity token tags that would go along with the form.
I realize I could use a complex form that creates the location on the form submittal but is there any way to achieve what I'm trying to do?
I'm using jQuery and jRails if that matters, but I'm under the assumption that it wouldn't affect this.