Class: Tap::Generator::Generators::Controller
- Inherits:
-
Resource
- Object
- Resource
- Tap::Generator::Generators::Controller
- Defined in:
- lib/tap/generator/generators/controller.rb
Overview
:startdoc::generator generates a controller
Generates a new Tap::Controller and an associated test file.
Instance Method Summary collapse
Instance Method Details
#manifest(m, const_name) ⇒ Object
11 12 13 14 15 16 17 18 19 |
# File 'lib/tap/generator/generators/controller.rb', line 11 def manifest(m, const_name) const = super views_dir = path('views', "#{const.path}") m.directory File.dirname(views_dir) m.template path(views_dir, "index.erb"), "view.erb" const end |