generate(what, *args)
Generate something using a generator from Rails or a plugin. The second parameter is the argument string that is passed to the generator or an Array that is joined.
generate(:authenticated, "user session")
# File railties/lib/rails/generators/actions.rb, line 226 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