module Rails::Generators::Actions
def generate(what, *args)
generate(:authenticated, "user session")
==== Example
the generator or an Array that is joined.
The second parameter is the argument string that is passed to
Generate something using a generator from Rails or a plugin.
def generate(what, *args) log :generate, what argument = args.map {|arg| arg.to_s }.flatten.join(" ") in_root { run_ruby_script("script/rails generate #{what} #{argument}", :verbose => false) } end