-
Notifications
You must be signed in to change notification settings - Fork 76
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
rails 5.1 fail #67
Comments
azeemh, please use the version from master. I haven't published the gem
update yet. The master branch does have a fully functional version though.
…On 5/15/17 8:22 AM, azeemh wrote:
tried using this today and after adding to my gemfile and running
bundle i got this error.
Terminal Dump:
rails g will_filter
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:79:in
|check_via': You should not use the|match|method in your router
without specifying an HTTP method. 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" (ArgumentError) from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1829:in|map_match'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1585:in
|match' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:25:in|block
in <top (required)>'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in
|instance_exec' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in|block
in with_default_scope'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:854:in
|scope' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:628:in|with_default_scope'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:422:in
|eval_block' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:406:in|draw'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:24:in
|<top (required)>' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in|load'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in
|block in load' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in|load_dependency'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in
|load' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in|block
in load_paths'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in
|each' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in|load_paths'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:18:in
|reload!' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:41:in|block
in updater'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/file_update_checker.rb:81:in
|execute' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:42:in|updater'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:31:in
|execute_if_updated' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/finisher.rb:128:in|block
in module:Finisher'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in
|instance_exec' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in|run'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:59:in
|block in run_initializers' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in|block
in tsort_each'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in
|block (2 levels) in each_strongly_connected_component' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:431:in|each_strongly_connected_component_from'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:349:in
|block in each_strongly_connected_component' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in|each'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in
|call' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in|each_strongly_connected_component'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:226:in
|tsort_each' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:205:in|tsort_each'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:58:in
|run_initializers' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application.rb:353:in|initialize!'
from /Users/azeemhussein/RetentionAnalytics/config/environment.rb:5:in
|<top (required)>' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in|require'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in
|preload' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:143:in|serve'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:131:in
|block in run' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in|loop'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in
|run' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application/boot.rb:19:in|<top
(required)>'
from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
|require' from
/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in|require'
from -e:1:in `
'
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#67>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AADPdPQqh5k7fOAFk00zV-YILWKR6tnlks5r6G2_gaJpZM4NbSkX>.
|
hey, so I installed the gem from master branch and there are still a few bugs first the migration was missing the version, which i explain the fix for in the migration and i hope gets added/updated. my gemfile:
my terminal session
I then found out it's simply adding [5.1] to the migration generated.
to
and running now I am running into a bug where as per directions of the documentation, I put
as line 1 of my routes.rb file (at the top of your routes) and I got the following error:
and my server did not start at all. now my routing file looks like:
and when I run rails s it loads but as soon as I try to access my app via the browser I get the following error:
and in the browser when I navigated to localhost:3000 I saw the following plaintext output:
|
tried using this today and after adding to my gemfile and running bundle i got this error.
Terminal Dump:
rails g will_filter
'/Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:79:in
check_via': You should not use the
matchmethod in your router without specifying an HTTP method. 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
getin the router: Instead of: match "controller#action" Do: get "controller#action" (ArgumentError) from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1829:in
map_match'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:1585:in
match' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:25:in
block in <top (required)>'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in
instance_exec' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:629:in
block in with_default_scope'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:854:in
scope' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/mapper.rb:628:in
with_default_scope'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:422:in
eval_block' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-5.1.0/lib/action_dispatch/routing/route_set.rb:406:in
draw'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/will_filter-3.1.11/config/routes.rb:24:in
<top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in
load'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in
block in load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:258:in
load_dependency'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/dependencies.rb:286:in
load' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in
block in load_paths'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in
each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:55:in
load_paths'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:18:in
reload!' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:41:in
block in updater'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.1.0/lib/active_support/file_update_checker.rb:81:in
execute' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:42:in
updater'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/routes_reloader.rb:31:in
execute_if_updated' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application/finisher.rb:128:in
block in module:Finisher'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in
instance_exec' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:30:in
run'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:59:in
block in run_initializers' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:228:in
block in tsort_each'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:350:in
block (2 levels) in each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:431:in
each_strongly_connected_component_from'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:349:in
block in each_strongly_connected_component' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in
each'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in
call' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:347:in
each_strongly_connected_component'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:226:in
tsort_each' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/tsort.rb:205:in
tsort_each'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/initializable.rb:58:in
run_initializers' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.1.0/lib/rails/application.rb:353:in
initialize!'from /Users/azeemhussein/RetentionAnalytics/config/environment.rb:5:in
<top (required)>' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in
require'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:92:in
preload' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:143:in
serve'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:131:in
block in run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in
loop'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application.rb:125:in
run' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/application/boot.rb:19:in
<top (required)>'from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
require' from /Users/azeemhussein/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in
require'from -e:1:in `
The text was updated successfully, but these errors were encountered: