Go Back   CodingForums.com > :: Server side development > Ruby & Ruby On Rails

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-18-2011, 06:26 PM   PM User | #1
conphill
New Coder

 
Join Date: Nov 2010
Posts: 70
Thanks: 6
Thanked 0 Times in 0 Posts
conphill is an unknown quantity at this point
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
conphill is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:49 PM.


Advertisement
Log in to turn off these ads.