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

double exclamation marks in haskell -

qml - Is it possible to implement SystemTrayIcon functionality in Qt Quick application -

Qt Creator - Searching files with Locator including folder -