I have a form with
<% form_tag :controller => 'mycon开发者_JAVA百科troller', :action => 'index', :method => 'post'
But when i submit it... it goes to the mycontroller#create action.
why? am i missing something?
Go to here: http://guides.rubyonrails.org/routing.html and check this topic: 2 Resource Routing: the Rails Default
You are using the method post that defaults to the action create.
精彩评论