Rails 3 resource renaming
Rails 2 way:
There was :as option in routes. Which rename routes.
Assume that you have next in routes.rb
resources :blogs # /blogs
If you want to rename it from urls perspective you can:
resources :blogs, :as => ‘posts’ # /posts
But, in rails 3 this doesnt work.
As workaround I can propose next:
resources :posts, :as => 'blogs', :controller => 'Blogs'