ruby - Error with Devise - Cannot run rails s or any devise commands -
i've added gem 'devise' of sudden can no longer run rails s or devise commands without seeing error message:
`c:3:in rescue in execute_if_updated': rails::application::routesreloader#execute_if_updated delegated updater.execute_if_updated, updater nil: #<rai s::application::routesreloader:0x276cf60 @paths=["c:/sites/code/omrails/config/routes.rb"], @route_sets=[#<actiondispatch::routing::routeset:0x2ab40c0>]> (runt meerror) c:65535:in `execute_if_updated' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/application/finisher.rb:69:in `block in <module:finisher>' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:30:in `instance_exec' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:30:in `run' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:55:in `block in run_initializers' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:in `block in tsort_each' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:in `each_strongly_connected_component_from' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in `block in each_strongly_connected_component' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in `each_strongly_connected_component' c:/railsinstaller/ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:in `tsort_each' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/initializable.rb:54:in `run_initializers' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/application.rb:215:in `initialize!' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/railtie/configurable.rb:30:in `method_missing' c:/sites/code/omrails/config/environment.rb:5:in `<top (required)>' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/application.rb:189:in `require' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/application.rb:189:in `require_environment!' c:/railsinstaller/ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0.rc2/lib/rails/commands.rb:47:in `<top (required)>' bin/rails:4:in `require' bin/rails:4:in `<main>'
gemfile:
source 'https://rubygems.org' gem 'rails', '4.0.0.rc2' gem 'jquery-rails' gem 'devise', '3.0.0.rc' gem 'turbolinks' gem 'jbuilder', '~> 1.2' gem 'bootstrap-sass', '~> 2.3.2.1' gem 'pg' gem 'simple_form', '3.0.0.rc' gem 'protected_attributes' gem 'rails_12factor', group: :production ruby '1.9.3' group :development, :test gem 'sqlite3' end group :assets gem 'sass-rails', '~> 4.0.0.rc2' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'bootstrap-sass', '~> 2.3.2.1' end group :doc gem 'sdoc', require: false end
routes.rb
omrails::application.routes.draw devise_for :installs # can have root of site routed "root" 'about' => 'pages#about' root :to => 'pages#home' end
maybe can shifting rails edge.
gem 'rails', github: 'rails/rails' gem "devise", "~> 3.0.1"
Comments
Post a Comment