-
-
Save sfate/3091024 to your computer and use it in GitHub Desktop.
rails console alias for both 2 and 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Rails 2 and Rails 3 console | |
function rc { | |
if [ -e "./config/environment.rb" ]; then | |
irb -Iconfig -renvironment | |
else | |
echo -e "\e[1;31m Error: \e[0mNo rails environment was founded! \n" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment