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