This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git reset --soft HEAD~n && git commit --edit -m"$(git log --format=%B --reverse HEAD..HEAD@{1})" | |
* n is the number of commits you want to squash from HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.youtube.com/watch?v=kZcqyuPeDao | |
https://gist.github.com/nateberkopec/2b1f585046adad9a55e7058c941d3850 | |
https://www.speedshop.co/2015/07/15/the-complete-guide-to-rails-caching.html | |
https://www.railsspeed.com/ | |
https://www.speedshop.co/2015/07/29/scaling-ruby-apps-to-1000-rpm.html | |
https://www.speedshop.co/2015/10/07/frontend-performance-chrome-timeline.html | |
https://github.com/ruby-prof/ruby-prof | |
https://github.com/schneems/get_process_mem | |
https://github.com/ko1/allocation_tracer | |
https://github.com/evanphx/benchmark-ips |