Sha256: 2ec3085f7589e7a75158fe9c436f793df2a1eff286cfca72f5975075e34b9615
Contents?: true
Size: 386 Bytes
Versions: 3
Compression:
Stored size: 386 Bytes
Contents
class BrochureGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def home copy_file "index.html.erb", "#{Rails.root}/app/views/home/index.html.erb" copy_file "four_zero_four.html.erb", "#{Rails.root}/app/views/home/four_zero_four.html.erb" copy_file "about.html.erb", "#{Rails.root}/app/views/home/about.html.erb" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails-brochure-0.4 | lib/generators/brochure_generator.rb |
rails-brochure-0.3 | lib/generators/brochure_generator.rb |
rails-brochure-0.2 | lib/generators/brochure_generator.rb |