Skip to content

Instantly share code, notes, and snippets.

@rentalcustard
Last active December 19, 2015 15:19
Show Gist options
  • Save rentalcustard/5975279 to your computer and use it in GitHub Desktop.
Save rentalcustard/5975279 to your computer and use it in GitHub Desktop.
Rails 3 commands in rails 2
#put me in your ~/.(bash|zsh|other-posix-shell)rc
rails() {
command=$1
shift
case $command in
g|generate)
script/generate $*;;
c|console)
script/console $*;;
s|server)
script/server $*;;
esac
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment