Sorry - there was a typo in my first example:
:controller => "search" - not :controller => "search_controller"


using
map.search "search", :controller => "search", :action => "new"
map.suche "suche", :controller => "search", :action => "new"

should mean that both /suchen and /search route to the new search
action

I think you may have to explicitly state the relative path in your
links though,
like:
<%= link_to "suchen", "/suchen" %>
and
<%= link_to "search", "/search" %>

or if you're using locales:
<%= link_to t('search.name'), "/#{t 'search.name'}" %>

hope that helps?

Gavin

http://handyrailstips.com



On Jul 30, 2:53 pm, John Smith <[email protected]>
wrote:
> I would like to cotinue using REST search_articles_path
> --
> Posted viahttp://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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to