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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I have now removed :confirmable from user.rb, and got: undefined local variable or method `root_path'' for #<Devise::RegistrationsController:0x25327b0> -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 On Aug 8, 2010, at 6:06 PM, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> I have now removed :confirmable from user.rb, and got: > > undefined local variable or method `root_path'' for > #<Devise::RegistrationsController:0x25327b0> > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 iPhoneThanks. 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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > 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 On Sun, Aug 8, 2010 at 6:41 PM, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> 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 > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 RobertsonNow, 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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
> > 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 On Sun, Aug 8, 2010 at 7:09 PM, Abder-Rahman Ali <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> 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. > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.