相当肯定我做错了。我该怎么干?
controller 'foo' do
get 'foo/bar', :action => 'bar', :as => 'foo_bar'
post 'foo/bar', :action => 'bar', :as => 'foo_bar'
post 'foo/baz', :action => 'baz', :as => 'foo_baz'
end
答案 0 :(得分:0)
rake routes
显示与此相同的路由:
get 'foo/bar'
post 'foo/bar'
post 'foo/baz'