Sha256: 4d071fde33c377beec18ba76e3b29e723c26ef698ee3b081ef38d97b1a5f9cd1
Contents?: true
Size: 479 Bytes
Versions: 2
Compression:
Stored size: 479 Bytes
Contents
class SkeletonGenerator < Rails::Generators::NamedBase source_root File.expand_path('../templates', __FILE__) def copy_skeleton_files copy_file 'app/controllers/welcome_controller.rb','app/controllers/welcome_controller.rb' template 'app/views/layouts/application.html.erb' template 'app/views/welcome/index.html.erb' template 'config/database.yml' template 'public/stylesheets/screen.css' route 'root :to => "welcome#index"' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
template-0.4.0 | lib/generators/skeleton/skeleton_generator.rb |
template-0.3.0 | lib/generators/skeleton/skeleton_generator.rb |