Montag, 23. Juni 2008

Form_for nested

when using nested controllers where forms in the views need to call a nested controller too:

<% form_for([@user, @movie]) do |f| %>
...
<% end %>


This will call the :controller => :movie with the :action => post with the :user_id => @user.id

Keine Kommentare: