2017-05-01 3 views
2

나는 실행하려고하면 '레일 유증 생성 : 설치'루비는

`There was an error while trying to load the gem 'devise'. 
Gem Load Error is: undefined method `alias_method_chain' for 
ActionDispatch::Routing::RouteSet:Class 
Did you mean? alias_method` 

내 Gemfile : 소스 'https://rubygems.org'

나는 다음을 얻고있다

gem 'devise' 
gem 'rails', '~> 5.1.0' 
gem 'sqlite3' 
gem 'puma', '~> 3.7' 
gem 'sass-rails', '~> 5.0' 
gem 'uglifier', '>= 1.3.0' 

gem 'coffee-rails', '~> 4.2' 
gem 'turbolinks', '~> 5' 
gem 'jbuilder', '~> 2.5' 

group :development, :test do 
    gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] 
    gem 'capybara', '~> 2.13.0' 
    gem 'selenium-webdriver' 
end 

group :development do 
    gem 'web-console', '>= 3.3.0' 
    gem 'listen', '>= 3.0.5', '< 3.2' 
    gem 'spring' 
    gem 'spring-watcher-listen', '~> 2.0.0' 
end 
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] 
+0

어떤 버전을 사용? 또한 전체 Gemfile이 도움이 될 수 있음을 보여줍니다. – Iceman

+0

버전 4.0이어야합니다. [link] (https://github.com/plataformatec/devise.git). –

+0

당신은 그것에 대해 확신해야합니다. – Iceman

답변

9

https://github.com/plataformatec/devise/issues/4518에 따르면 고안 4.0 레일 작동하지 않습니다 5.1.0

다음 주 새로운 버전이있을 것이다, 그 사이에 당신의 Gemfile에 사용할 수 : gem "devise", git: 'https://github.com/plataformatec/devise.git'

+1

'보석 'devise', github : 'plataformatec/devise'' 더 나은 방법이 될 수도 있습니다! –

0

당신은 레일 응용 프로그램 (5.1.2)의 사본을 찾고 있다면 고안 4.3 일, 나는 rails- 포크 레포를 고안해.

https://github.com/ytbryan/rails-devise

이 REPO 또한 고안의 실행 루비 2.4.0 및 대학원 0.20.0