Re: [Rails] Re: simple home_url question
On Sat, May 21, 2011 at 1:53 AM, Taylor Strait <lists@ruby-forum.com> 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 rubyonrails-talk@googlegroups.com.
> To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
> 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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home