-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
undefined method `alias_method_chain (Rails 5.1, ruby 2.4) #4511
Comments
fixed add:
working for me. |
Could you try the master branch? It should be fixed there. |
@rafaelfranca just tried the master branch with ruby 2.4.1 and rails 5.1 and it is not working.
|
Sorry, my mistake, it is working! |
@imKota Thank you for taking the time to post your solution to the problem. But. Would you be able to explain what is actually happening here? Thank you in advance! 😄 |
hola hablo español soy nuevo me gustaria que me ayudaran estoy instalando devise pero cuando coloco "rails g devise:install" Bundler Error Backtrace: from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:81:in block (2 levels) in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:77:in each'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:77:in block in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:66:in each'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:66:in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler.rb:108:in require'from C:/Users/admin/certificados/config/application.rb:7:in <top (required)>' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command/actions.rb:15:in require'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command/actions.rb:15:in require_application_and_environment!' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/commands/generate/generate_command.rb:19:in perform'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in run' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in invoke_command'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in dispatch' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command/base.rb:63:in perform'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command.rb:44:in invoke' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/commands.rb:16:in <top (required)>'from bin/rails:4:in require' from bin/rails:4:in '
C:\Users\admin\certificados>gem update bundlergem 'devise', git: 'https://github.com/gogovan/devise.git', branch: 'rails-5.1' C:\Users\admin\certificados>rails generate devise:install Bundler Error Backtrace: from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:81:in block (2 levels) in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:77:in each'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:77:in block in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:66:in each'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler/runtime.rb:66:in require' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.15.0.pre.3/lib/bundler.rb:108:in require'from C:/Users/admin/certificados/config/application.rb:7:in <top (required)>' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command/actions.rb:15:in require'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command/actions.rb:15:in require_application_and_environment!' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/commands/generate/generate_command.rb:19:in perform'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in run' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in invoke_command'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in dispatch' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command/base.rb:63:in perform'from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/command.rb:44:in invoke' from C:/RailsInstaller/Ruby2.3.0/lib/ruby/gems/2.3.0/gems/railties-5.1.0/lib/rails/commands.rb:16:in <top (required)>'from bin/rails:4:in require' from bin/rails:4:in '
|
This fails for devise-async though: Gemfile:
Results:
|
@NickMoignard Special? fixed version. Try the master branch. |
@repocho007 Hola bro la solucion la dio imKota, igual es solo editar el archivo Gemfile dentro del proyecto y colocas: gem 'devise', git: 'https://github.com/gogovan/devise.git', branch: 'rails-5.1' Luego en la consola ejecutas Y ya podras: rails g device:install |
Friend ya e solucionado |
Zelgaliz veo que hablas español sera que me podrías colaborar con algunos asustos de unas gemas |
The master branch has the fix already. |
Confirmed master branch working well! |
Yup, confirmed. Thanks!! |
@rafaelfranca is there any plan in which version will this be added - i.e. not just on the master branch, but bundled up to rubygems.org? |
undefined method `alias_method_chain' for DeviseController:Class (NoMethodError) when we are using the devise version i.e gem 'devise', git: 'https://github.com/plataformatec/devise.git', branch: 'master' in rails 5.1.0. |
gem 'devise'
error:
The text was updated successfully, but these errors were encountered: