Ruby on Rails 3 Rails Generator

mkdir -p ~/.rails/generators/tutorial_test/templates
touch ~/.rails/generators/tutorial_test/tutorial_test_generator.rb
vi ~/.rails/generators/tutorial_test/templates/tutorial.erb
class TutorialTestGenerator < Rails::Generator::Base
  def initialize(*runtime_args)
    super(*runtime_args)
    @tut_args = runtime_args
  end

  def manifest
    record do |m|
      m.directory "public"
      m.template "tutorial.erb", File.join("public", "tutorial.txt"),
        :assigns => { :args => @tut_args }
    end
  end
end
vi ~/.rails/generators/tutorial_test/templates/tutorial.erb
I'm a template!

I got assigned some args:
<%= require 'pp'; PP.pp(args, "") %>

Build the generator

rails generate
rails generate tutorial_test arg1 arg2 arg3
      exists  public
      create  public/tutorial.txt
% cat public/tutorial.txt
I'm a template!

I got assigned some args:
[["arg1", "arg2", "arg3"],
 {:collision=>:ask,
  :quiet=>false,
  :generator=>"tutorial_test",
  :command=>:create}]