public
Created

  • Download Gist
rails_bash_shortcuts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
function sc {
if [ -e script/rails ]; then
rails console $@
else
script/console --debugger $@
fi
}
function ss {
if [ -e script/rails ]; then
rails server $@
else
script/server --debugger $@
fi
}
function sg {
if [ -e script/rails ]; then
rails generate $@
else
script/generate $@
fi
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.