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
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#