On Sat, May 21, 2011 at 1:53 AM, Taylor Strait <[email protected]> wrote: > As of Rails 3.0.3, there are no comments in routes.rb that relate to the > creation of home_url and home_path. There is a mention of root: > > # You can have the root of your site routed with "root" > # just remember to delete public/index.html. > # root :to => "welcome#index" > > but that it all. > > I just want to know why in my app, this action: > > --- > redirect_to(home_url, :notice => "Completed") > --- > > Returns the following error: > > --- > NameError in InvitationsController#complete_thing > > undefined local variable or method `home_url' for
have you tried using '/' instead of home_url? > #<InvitationsController:0x52ba788> > --- > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

