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
Post a Comment