29 Nov '15, 2pm

“rails で /users/:id ではなく /:username な routing にする方法 | Yuichi Takada” https://t.co/X5k7WKFq2P #ruby #rails

$ rake routes Prefix Verb URI Pattern Controller#Action edit_user GET /:id/edit(.:format) users#edit user GET /:id(.:format) users#show PATCH /:id(.:format) users#update PUT /:id(.:format) users#update DELETE /:id(.:format) users#destroy

Full article: http://blog.takady.net/blog/2015/11/29/rails-routing-with...

Tweets