Kleber Shimabuku
unread,Mar 8, 2011, 7:30:10 PM3/8/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
Hi all,
In older version 2.x I was doing something like:
map.resources :jobs, :as => 'vagas'
and this way, I can use jobs_path to create a link to.
But in rails 3, I still can use :as to define an alias, but I cannot
use jobs_path anymore, because it forces me to use vagas_path.
So I was wondering if have any way to define an alias and still use
the original resource name to create a link.