Will_filter gem生成错误

时间:2014-05-03 20:37:40

标签: ruby-on-rails ruby-on-rails-4

我在尝试安装will_filter gem时遇到以下错误,运行以下命令:rails generate will_filter

C:\Sites\eyesproject>rails generate will_filter
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0.0/lib/action
_dispatch/routing/mapper.rb:191:in `normalize_conditions!': You should not use t
he `match` method in your router without specifying an HTTP method. (RuntimeErro
r)
If you want to expose your action to both GET and POST, add `via: [:get, :post]`
 option.
If you want to expose your action to GET, use `get` in the router:
  Instead of: match "controller#action"
  Do: get "controller#action"
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:67:in `initialize'
        from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.0
.0/lib/action_dispatch/routing/mapper.rb:1438:in `new'

my routes.rb:

Eyesproject::Application.routes.draw do
  resources :project_details

  resources :welcomes

get "sessions/new"
  get "sign_up" => "users#new", :as => "sign_up"
  root 'welcome#index'
  get "welcome/index"

end

有关于此的任何想法吗?

0 个答案:

没有答案