Rails 3 routes alias

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.

try this out get “welcome/operations”, as: :operations

and check the comments in your config/routes.rb file

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