#!/usr/bin/env ruby if ARGV.size != 1 puts "Call like #{$0} appname" exit 1 end template = File.expand_path('../../lib/rails_app_templates/site_with_admin.rb', __FILE__) exec("rails new #{ARGV.first} -d mysql -m #{template}")