Rails 3: Devise: No route matches “/”

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?

1
задан aNoble 2 December 2010 в 17:07
поделиться

1 ответ

По-видимому, последняя версия 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"
2
ответ дан 2 September 2019 в 21:53
поделиться
Другие вопросы по тегам:

Похожие вопросы: