2017年4月21日 星期五

rails 進階 base to_param overide the id rails

http://jacopretorius.net/2015/03/overriding-named-route-parameters-in-rails.html

https://apidock.com/rails/ActiveRecord/Base/to_param

http://ruby-journal.com/how-to-override-default-primary-key-id-in-rails/.

  get :products, path: 'products#show', param: :title

https://apidock.com/rails/v4.0.2/ActiveSupport/Inflector/parameterize


http://blog.teamtreehouse.com/conversational-and-short-urls-on-rails

http://ricostacruz.com/cheatsheets/rails-routes.html

沒有留言:

張貼留言