rails rename resource route code example Example: rails change resource name resources :posts, :path => 'blogs' do # ..... end