FYI, I figured this out and if you are interested home_path (or
anything_path) is defined in routes.rb by defining it like so:
map.home '''', :controller => ''controller'',
:action => ''action''
then you can us home_path as a local variable.
On Sep 28, 6:19 pm, Jables
<brun3...-Meo6Lv8EUjg3uPMLIKxrzw@public.gmane.org>
wrote:> I''m trying to run some code that uses a link_to and home_path as
the
> location. It returns a undeclared local variable. Is home_path only
> available in edge rails or what is this?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---