Home_path?

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?

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs