module Rails::Generators::Actions
def generate(what, *args)
The first argument is the generator name, and the remaining arguments
generate "scaffold", "Post", "title:string", "body:text"
generate "scaffold", "Post title:string body:text"
Runs another generator.
def generate(what, *args) log :generate, what options = args.extract_options! options[:abort_on_failure] = !options[:inline] rails_command "generate #{what} #{args.join(" ")}", options end