Displaying 1 result from an estimated 1 matches for "random_url".
2006 Apr 20
0
link_to mapped urls
Hi all,
I want my link_to links direct to my mapped urls, not the long ones with
controllers and actions in them.
What I have:
in view:
<%= link_to "random url", random_url %>
routes.rb:
map.random ''random'', :controller => ''start'', :action => ''random''
link_to results in "http://localhost:3001/start/random"
and I want it to point to "http://localhost:3001/random"
What am I doing wrong...