Trying to understand Ruby links

I’ve got Ruby on Rails and Apache. I’m trying to understand someone
else’s Ruby code which is below. I don’t know how the “info_path” -link
works on the net. The link does go to some other site, but I don’t know
how it works. Any suggestions?

<%=link_to " #{I18n.t ‘take_part_link2’}", info_path %>

Thanks to all answers!

  • Coma

Vp Vp wrote:

I’ve got Ruby on Rails and Apache. I’m trying to understand someone
else’s Ruby code which is below. I don’t know how the “info_path” -link
works on the net. The link does go to some other site, but I don’t know
how it works. Any suggestions?

Find the app/config/routes.rb file and read through that for where the
info path is setup…

For a global roadmap of the app, from the app root, run
rake routes >routes.lst

Then look at that file for a clear delineation of all the routing that
is built into the application

Hi

Do like Ar Chron says. Also you can try like
./script/console
app.info_path

Sijo