In ActionPack with Rails 5 no module ActionController::RackDelegation
Thanks, however we don't support Rails 5 yet - once a beta or release candidate is released, we will gladly add official support to it.
Meanwhile please feel free to send any pull request that might help us get closer to having devise working with Rails master. Thanks!
RackDelegation was removed as part of this commit. Removing the reference inside lib/devise/failure_app.rb worked around the issue for me.
I'm having the same problem and removing include ActionController::RackDelegation gives me another error. Was this all i needed to do jachenry?
@grex84 That's all I had to to do for this particular issue. There was another issue I faced around routes and scopes but it was not related to this error.
@carlosantoniodasilva: for future reference, this is resolved by #3714
Now that Rails 5 Beta 1 is out, will we see some movement toward supporting it?
Devise master supports Rails 5.
Having just generated a Rails 5 Beta 1 app and installed Devise from the master branch, I can safely say that no, Devise master does not support Rails 5.
Our test suite passes on Rails 5: https://travis-ci.org/plataformatec/devise/jobs/100575093. So if you are running into issues, please do a proper report or send pull requests. :) Be movement you want to see happening.
The error I'm seeing is the one reported here. No need to file an additional report.
Perhaps I've done something wrong, but I see what I see.
Hello, devise master seems to work for me with rails 5.0.0.beta1 (installed on Ms Windows).
I'm not sure what I was doing wrong, but I think you're right. My sincere apologies.
devise_token_auth doesn't work because of Devise 3.5.3 in dependencies (3.5.3 has include ActionController::RackDelegation in lib/devise/failure_app.rb).
Have no idea how to use it :(
Still seeing this error when using Devise 3.5.3, Rails 5.0.0beta1 and trying to start the server.
.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/devise-3.5.3/lib/devise/failure_app.rb:9:in '<class:FailureApp>': uninitialized constant ActionController::RackDelegation (NameError)
This is a brand new application. The only thing I have done to it is to remove turbolinks.
You need to use Devise master for Rails 5.0.0 beta.
Thanks, I got it working. For others that are experiencing this issue. Pull Devise from github and not rubygems.org. Although the version number is the same, the underlying code is not. The rubygems.org gem still has the RackDelegation code in it.
For others tha are using devise_token_auth gem.
I'm using:
gem 'omniauth', '>= 1.0.0'
gem 'devise', git: '[email protected]:plataformatec/devise.git'
gem 'devise_token_auth', git: 'git://github.com/lynndylanhurley/devise_token_auth.git'
gem 'devise', git: '[email protected]:plataformatec/devise.git' solves the problem.
omniauth is devise_token_auth dependency too.
@stephanngamedev . That works :+1:
@stephanngamedev Thanks! :star:
Thanks!!
@stephanngamedev Thanks! :+1:
Thank you @stephanngamedev!
@stephanngamedev Thanks!
Thank you
@stephanngamedev Thanks a lot! 馃憤
@stephanngamedev thanks :)
You also can specify devise version 4.0.0.rc1
gem 'devise', '4.0.0.rc1'
@stephanngamedev Thanks a lot!
+1 here for
_gem 'devise', git: '[email protected]:plataformatec/devise.git'_
gem 'devise', '4.0.0.rc2'
This worked for me --> killing my spring servers.
https://jasonplayne.com/web-dev/rails-generate-could-not-find-in-any-of-the-sources
Most helpful comment
For others tha are using devise_token_auth gem.
I'm using:
gem 'devise', git: '[email protected]:plataformatec/devise.git'solves the problem.omniauthis devise_token_auth dependency too.