I'm running into some issues when trying to add Devise to my Rails 3 app. I started by creating a new Rails 3 (rc2) app with a "Home" controller and "index" action and verified that "/" would render "#home/index". Next I set devise 1.1.1 in my Gemfile, installed Devise, created a User model, and migrated the database. Now "/" returns No route matches "/" and none of the Devise routes will work.
What is the fix for this?
По-видимому, последняя версия gem (1.1.1) Devise не работает с Rails 3.0. .0rc2. Вы должны использовать последнюю версию с github.
Измените свой Gemfile с:
gem 'devise', '1.1.1'
На:
gem "devise", :git => "git://github.com/plataformatec/devise.git"