Skip to content

Instantly share code, notes, and snippets.

@feldpost
Created September 9, 2011 20:02
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 feldpost/1207177 to your computer and use it in GitHub Desktop.
Save feldpost/1207177 to your computer and use it in GitHub Desktop.
Rails Console
console () {
eilzug $*
rails_version=`bundle exec rails -v`
if [[ $rails_version == *2.3* ]]
then
./script/console --irb=pry
elif [[ $rails_version == *3.* ]]
then
bundle exec rails c
else
#no bundler installed
rails c
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment