Devise issue

I'm following the devise Rails cast here:
http://railscasts.com/episodes/209-introducing-devise

After I signup, I get the following:

http://paste.pocoo.org/show/247793/

Provided that I'm using Rails3.0.0.rc.

Any ideas?

Thanks.

I have now removed :confirmable from user.rb, and got:

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

Ensure that something is mapped to the root path. In rails 2.3 it would be something like this in config/routes.rb:

map.root, :controller => "home"

Patrick Robertson wrote:

Ensure that something is mapped to the root path. In rails 2.3 it would
be something like this in config/routes.rb:

map.root, :controller => "home"

Sent from my iPhone

Thanks. Yes, I think there is a problem with the routs. I'm creating the
application from scratch though, and this is where I'm at:
http://www.ruby-forum.com/topic/214614#931504

Thanks. Yes, I think there is a problem with the routs. I’m creating the

application from scratch though, and this is where I’m at:

http://www.ruby-forum.com/topic/214614#931504

The Rails 3 equivalent would be
root :to => ‘pages#home’

That is assuming you get the pages controller with the home action working properly in the other thread!

-Patrick Robertson

Patrick Robertson wrote:

Thanks. Yes, I think there is a problem with the routs. I'm creating the
application from scratch though, and this is where I'm at:
http://www.ruby-forum.com/topic/214614#931504

The Rails 3 equivalent would be
root :to => 'pages#home'

That is assuming you get the pages controller with the home action
working
properly in the other thread!

-Patrick Robertson

Now, this is what my routes.rb file look like:

http://paste.pocoo.org/show/247808/

The problem is when I try to navigate to:
http://localhost:3000/users/sign_up

I just redirected to: http://localhost:3000 automatically and not able
to open the signup page. Why is that?

Thanks.

Now, this is what my routes.rb file look like:

http://paste.pocoo.org/show/247808/

The problem is when I try to navigate to:

http://localhost:3000/users/sign_up

I just redirected to: http://localhost:3000 automatically and not able

to open the signup page. Why is that?

An excellent question! I would tail the development log:
tail -f log/development.log

That might give you some insight as to why it is directing you to the root path instead of the registrations controller new action. Generally speaking, it should pretty much work out of the box. You might need to define one of the user fields as an attr_accessor or you might be missing a strategy in the line “devise :database_authenticatable, etc, etc” line. My experience is almost entirely on the rails 2.3 branch of devise; perhaps someone else in the group might have a bit of wisdom on the 3.0 branch.

-Patrick Robertson

Thanks a lot Patrick.

So, this is how my "user.rb" file looks like:

http://paste.pocoo.org/show/fEKtgXkB8WfHL3aBzmdh/

Abd, as for $ tail -f log/development.log

http://paste.pocoo.org/show/IxpFou9RMrDF8LOwSVKl/

Makes anything clear here?

Following the tutorial, it seems that it redirects to:
http://localhost:3000, and this seems to be intended to be.

I have removed index.html from the "public" directory.

The tutorial shows the index of the projects.

Since I'm somehow new to Rails, how can I make my Project controller
index be the index.html page, such that it displays when going to:
http://localhost:3000?

Thanks.

I want to mention that I started the application from scratch once again
and it worked.

I don't know exactly what I was missing.

Thanks for all your replies.