Skip to content

polly/rails_templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 

Repository files navigation

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

About

A project where the aim is to collect my rails templates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published