Comparing Rails routing configuration with git
This onelinel will show the list of changed routes between two git branches, the main
, and the current one:
git checkout main && rails routes > before.txt && git checkout internal/commentable-communication && rails routes > after.txt && diff -u -b before.txt after.txt | diff-so-fancy
(diff-so-fancy
is optional.)
Somewhat related:
- List changed files for the current git branch
- Stubbing environment variables in RSpec
- Fixing ActiveRecord::UnknownMigrationVersionError
- How to list all validators in a Rails model
- How to push git tags
- Starting a new git branch in the past
- Reapplying Rails DB migration
- Customizing enum fields order for ActiveRecord
- Rails class_names helper
- Getting head revision id from Git
- Hot to change password manually with Rails and Devise