Skip to content
A project where the aim is to collect my rails templates
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README
basic_template.rb
nifty_template.rb

README

My rails templates

bash function for creating new rails apps. (Originating from Ryan Bates: http://railscasts.com/episodes/148-app-templates-in-rails-2-3)

function railsapp {  
  if [ -z "$1" ] || [ -z "$2" ]
  then
    echo "Usage:"
    echo "   railsapp <template name> <application name>"
  else
    template=$1
    appname=$2
    shift 2
    rails $appname -m http://github.com/stjernstrom/rails_templates/raw/master/${template}_template.rb $@
  fi  
}

# http://m.onkey.org/2008/12/4/rails-templates

Something went wrong with that request. Please try again.