I’m working in a rails app (rails 2.3.8), and I created a resource called articles. I need a form who call the create action in that controller. I used a form_remote_tag, but I can’t call correctly the “create” action, the app always call de “new” action.
I used several different combinations, the last one is this
<%=form_remote_tag :html => { :action => url_for (:action => :create)} %>
How a could do this?.
I can’t use the for_remote_for or the form_for because that form will feed more tan one table in my database.
Thanks in advance
You are over complicating it:
Also, be sure that this is what you truly need. You say you want to create multiple objects in the form, which is why I think you may be after
form_remote_forcoupled withfields_forrather thanform_remote_tag, but from your question I don’t fully understand.