Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during $rails generate will_filter #59

Open
amit-siddhu opened this issue Aug 26, 2014 · 1 comment
Open

Error during $rails generate will_filter #59

amit-siddhu opened this issue Aug 26, 2014 · 1 comment

Comments

@amit-siddhu
Copy link

C:\Sites\projects\SD-PMA>rails generate will_filter
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1.1/lib/action
_dispatch/routing/mapper.rb:196:in normalize_conditions!': You should not use t hematchmethod in your router without specifying an HTTP method. (RuntimeErro r) If you want to expose your action to both GET and POST, addvia: [:get, :post] option. If you want to expose your action to GET, usegetin 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.1 .1/lib/action_dispatch/routing/mapper.rb:68:ininitialize'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1
.1/lib/action_dispatch/routing/mapper.rb:1462:in new' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1 .1/lib/action_dispatch/routing/mapper.rb:1462:inadd_route'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1
.1/lib/action_dispatch/routing/mapper.rb:1441:in decomposed_match' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1 .1/lib/action_dispatch/routing/mapper.rb:1422:inblock in match'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1
.1/lib/action_dispatch/routing/mapper.rb:1412:in each' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1 .1/lib/action_dispatch/routing/mapper.rb:1412:inmatch'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/will_filter-3.
1.11/config/routes.rb:25:in block in <top (required)>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1 .1/lib/action_dispatch/routing/mapper.rb:526:ininstance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1
.1/lib/action_dispatch/routing/mapper.rb:526:in block in with_default_scope' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1 .1/lib/action_dispatch/routing/mapper.rb:740:inscope'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1
.1/lib/action_dispatch/routing/mapper.rb:525:in with_default_scope' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1 .1/lib/action_dispatch/routing/route_set.rb:333:ineval_block'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/actionpack-4.1
.1/lib/action_dispatch/routing/route_set.rb:313:in draw' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/will_filter-3. 1.11/config/routes.rb:24:in<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.1.1/lib/active_support/dependencies.rb:241:in load' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 4.1.1/lib/active_support/dependencies.rb:241:inblock in load'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.1.1/lib/active_support/dependencies.rb:232:in load_dependency' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 4.1.1/lib/active_support/dependencies.rb:241:inload'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/application/routes_reloader.rb:40:in block in load_paths' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/application/routes_reloader.rb:40:ineach'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/application/routes_reloader.rb:40:in load_paths' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/application/routes_reloader.rb:16:inreload!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/application/routes_reloader.rb:26:in block in updater' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 4.1.1/lib/active_support/file_update_checker.rb:75:incall'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.1.1/lib/active_support/file_update_checker.rb:75:in execute' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/application/routes_reloader.rb:27:inupdater'
from C:in execute_if_updated' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/application/finisher.rb:71:inblock in module:Finisher'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/initializable.rb:30:in instance_exec' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/initializable.rb:30:inrun'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/initializable.rb:55:in block in run_initializers' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:inblock i
n tsort_each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in block ( 2 levels) in each_strongly_connected_component' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:ineach_st
rongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in block i n each_strongly_connected_component' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:ineach'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in each_st rongly_connected_component' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:intsort_e
ach'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/initializable.rb:54:in run_initializers' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/application.rb:288:ininitialize!'
from C:/Sites/projects/SD-PMA/config/environment.rb:5:in <top (required )>' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 4.1.1/lib/active_support/dependencies.rb:247:inrequire'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.1.1/lib/active_support/dependencies.rb:247:in block in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport- 4.1.1/lib/active_support/dependencies.rb:232:inload_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.1.1/lib/active_support/dependencies.rb:247:in require' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/application.rb:264:inrequire_environment!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/commands/commands_tasks.rb:147:in require_application_and_environmen t!' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/commands/commands_tasks.rb:133:ingenerate_or_destroy'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/commands/commands_tasks.rb:51:in generate' from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1 /lib/rails/commands/commands_tasks.rb:40:inrun_command!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.1.1
/lib/rails/commands.rb:17:in <top (required)>' from bin/rails:8:inrequire'
from bin/rails:8:in `

'

@mark100net
Copy link

Use this in your Gemfile:

gem 'will_filter', github: 'berk/will_filter'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants