Generate and save routes into a text file each time they change
install guard and guard-shell
-
add the following section to
Guardfile:guard 'shell' do watch(/^config\/routes\.rb$/) { `bundle exec rake routes > routes.txt` } end add
routes.txtinto.gitignorestart guard, change the
routes.rbfilerun
cat routes.txt | grep somethinginstead ofrake routes
Written by Alex G
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rails
Authors
Did you know?
Guarding a web app includes the code that arrives in the browser, not only the code in source control. Tags and dependencies can change in production between deploys.
Security insights from Cside
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#