conphill
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?
UPDATE:
Got my answer I was looking for,
Add
root to: 'home#index'
Or in Ruby 1.8.7
root :to => 'home#index'
to the routes.rb file
NameError in Devise::RegistrationsController#create
undefined local variable or method `root_path' for #<Devise::RegistrationsController:0x266d9a4>
Anyone help?
UPDATE:
Got my answer I was looking for,
Add
root to: 'home#index'
Or in Ruby 1.8.7
root :to => 'home#index'
to the routes.rb file