SpicyCode

Updated shortcuts for Rails 2 and 3

01 Mar 2010

If you are like me and spend a good deal of time between rails 2 and 3 you have probably become frustrated by your aliases no longer working. Behold, functions!

function ss {
  if [ -e "./script/server" ]; then
    ./script/server
  fi

  if [ -e "./script/rails" ]; then
    ./script/rails server
  fi
}

function sc {
  if [ -e "./script/console" ]; then
    ./script/console
  fi

  if [ -e "./script/rails" ]; then
    ./script/rails console
  fi
}

Please wait while my tweets load...

If you can't wait - check out what I've been twittering