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

html - jquery - p element wont show after I hid it -

python - BeautifulSoup: How to get the nearest tag -

php - Return Last Insert ID with PDO -