View Full Version : Devise routes error

07-18-2011, 06:26 PM
So I am using devise and followed the tutorial on railscasts and everything seems to work but when I click submit for my sign up I get this error:

NameError in Devise::RegistrationsController#create

undefined local variable or method `root_path' for #<Devise::RegistrationsController:0x266d9a4>

Anyone help?

Got my answer I was looking for,

root to: 'home#index'

Or in Ruby 1.8.7

root :to => 'home#index'

to the routes.rb file

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum