views:

219

answers:

0

./script/rails g generator admin

class AdminGenerator < Rails::Generators::NamedBase
  def self.source_root
    @source_root ||= File.expand_path('../templates', __FILE__)
  end

  def manifest
    #I know I can copy my template files with the 'template' method
    #How I can generate a migration, and a model here ?
  end
end