Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New Coder
    Join Date
    Nov 2010
    Posts
    70
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Devise routes error

    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:

    Code:
    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
    Last edited by conphill; 07-18-2011 at 06:56 PM. Reason: Solved


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •