How can I get rid of the format specifier in Rails 4.1 routes? -


suppose have controller called userscontroller, , have resources :users in routes.rb file. rake routes shows such routes users/:id(.:format), want routes of form users/:id instead (i.e. asking users/7.html return error.) how can that?

it's quite simple:

resources :users, :format => false 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -