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
What is a proposition?
vor 15 Jahren
Keine Kommentare:
Kommentar veröffentlichen