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.txt
into.gitignore
start guard, change the
routes.rb
filerun
cat routes.txt | grep something
instead 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#