Class: Cells::Generators::ViewGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/cells/view_generator.rb

Direct Known Subclasses

Erb::Generators::CellGenerator, Haml::Generators::CellGenerator, Slim::Generators::CellGenerator

Instance Method Summary (collapse)

Instance Method Details

- (Object) create_views



4
5
6
7
8
9
10
# File 'lib/generators/cells/view_generator.rb', line 4

def create_views
  for state in actions do
    @state  = state
    @path   = File.join(base_path, "#{state}.html.#{handler}")  #base_path defined in Cells::Generators::Base.
    template "view.#{handler}", @path
  end
end