I have this:
<% form_tag :controller => :proposa开发者_如何学Cls, :method => :bulk_action do %>
but it errors in the create method... which is weird because I'm trying to tell stuff to delete.
The :method
parameter specifies the HTTP request method. You're probably looking for :action
instead:
<% form_tag :controller => :proposals, :action => :bulk_action do %>
This will create a form that points to bulk_action
in ProposalsController
.
精彩评论