Skip to content

Instantly share code, notes, and snippets.

@jswanner
Created May 19, 2010 21:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jswanner/406850 to your computer and use it in GitHub Desktop.
Save jswanner/406850 to your computer and use it in GitHub Desktop.
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment