#!/usr/bin/ruby -w require "../common/helper.rb" # start the script... if ARGV.length<=1 puts "generate: Please give a type and a model name" else if(ARGV[0]!="controller") puts "generate: only controller is implemented..." else create_model(ARGV[1]) end end