devise icon indicating copy to clipboard operation
devise copied to clipboard

Rails 5 alpha : devise-40258bf100c0/lib/devise/failure_app.rb:9:in `<class:FailureApp>': uninitialized constant ActionController::RackDelegation (NameError)

Open chasik opened this issue 11 years ago • 31 comments

In ActionPack with Rails 5 no module ActionController::RackDelegation

chasik avatar Sep 03 '15 10:09 chasik

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!

carlosantoniodasilva avatar Sep 03 '15 10:09 carlosantoniodasilva

RackDelegation was removed as part of this commit. Removing the reference inside lib/devise/failure_app.rb worked around the issue for me.

jachenry avatar Sep 19 '15 20:09 jachenry

I'm having the same problem and removing include ActionController::RackDelegation gives me another error. Was this all i needed to do jachenry?

grex84 avatar Sep 26 '15 20:09 grex84

@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.

jachenry avatar Sep 26 '15 23:09 jachenry

@carlosantoniodasilva: for future reference, this is resolved by #3714

djsegal avatar Dec 12 '15 04:12 djsegal

Now that Rails 5 Beta 1 is out, will we see some movement toward supporting it?

afstanton avatar Jan 06 '16 17:01 afstanton

Devise master supports Rails 5.

josevalim avatar Jan 06 '16 17:01 josevalim

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.

afstanton avatar Jan 06 '16 17:01 afstanton

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.

josevalim avatar Jan 06 '16 17:01 josevalim

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.

afstanton avatar Jan 06 '16 18:01 afstanton

Hello, devise master seems to work for me with rails 5.0.0.beta1 (installed on Ms Windows).

wuatanabe avatar Jan 06 '16 18:01 wuatanabe

I'm not sure what I was doing wrong, but I think you're right. My sincere apologies.

afstanton avatar Jan 06 '16 19:01 afstanton

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 :(

ifokeev avatar Jan 07 '16 02:01 ifokeev

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.

fuzzylizard avatar Jan 14 '16 17:01 fuzzylizard

You need to use Devise master for Rails 5.0.0 beta.

josevalim avatar Jan 14 '16 17:01 josevalim

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.

fuzzylizard avatar Jan 14 '16 17:01 fuzzylizard

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.

stephannv avatar Jan 14 '16 18:01 stephannv

@stephanngamedev . That works :+1:

jeremyrajan avatar Jan 23 '16 11:01 jeremyrajan

@stephanngamedev Thanks! :star:

andrewostroumov avatar Jan 24 '16 14:01 andrewostroumov

Thanks!!

saurabhh avatar Feb 02 '16 09:02 saurabhh