2
votes

Hello I am working with Rails 4.0.0.rc1/Ruby 2.0.0p195, and I am using devise at gem 'devise', github: 'plataformatec/devise', branch: 'rails4'.. I keep getting this error when I want to migrate to the database..

Routes File:

Railsapp::Application.routes.draw do
  devise_for :users
end

development.rb file:

config.action_mailer.default_url_options = { :host => 'localhost:3000' }

Error Message

Railsapp::Application::RoutesReloader#execute_if_updated delegated to updater.execute_if_updated, but updater is nil:

@route_sets=[#]>`

1
are you using the devise rails4 branch?Jesse Wolgamott
Yes. I updated the question specifying which one I am using.Shirwa Mohamed
you'll probably need to update the question with your routes fileJesse Wolgamott
I added it to the question. Even thought I change anything in it;Shirwa Mohamed
I think something else is wrong --- I just created a new rails app, added devise, and migrated the database without problem. Maybe add your app to github?Jesse Wolgamott

1 Answers

4
votes

I just had this problem in a brand new Rails 4 app and it was because I forgot to run

rails g devise:install

as indicated in the Getting Started section in the readme in the Devise project.