ruby on rails - Change resources path -


i'm using rails 4

i have routes.rb file looks like:

resources :books 

however, i'd urls in application end looking /b/101 instead of /books/101.

i realize go through , rename each resource path individually, there not way changing resources somehow? kind of how can change params doing resources :books, params: :new_id?

here can

resources :books, path: 'b' 

Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -