Sha256: 6888d41c8c6e59522d0ec7de5014bd22824e13203a1ce4af9bae3d62dd6b221a
Contents?: true
Size: 385 Bytes
Versions: 11
Compression:
Stored size: 385 Bytes
Contents
class TemplateGenerator < Rails::Generator::NamedBase def manifest record do |m| template_name = "#{file_name}" m.directory File.join('app/views/layouts/templates') m.template 'template.erb', File.join('app/views/layouts/templates', "#{template_name}.html.erb") end end protected def banner "Usage: #{$0} #{spec.name} template_name" end end
Version data entries
11 entries across 11 versions & 4 rubygems