On Sat, May 21, 2011 at 1:53 PM, 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
> #<InvitationsController:0x52ba788>
> ---
>
>
i believe what you want is root_url and not home_url.

also check rake routes and see if you really have a home_path/url declared.


> --
> 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.
>
>


-- 
-------------------------------------------------------------
visit my blog at http://jimlabs.heroku.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.

Reply via email to