Class: Cells::Generators::ViewGenerator

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

Instance Method Summary collapse

Instance Method Details

#create_viewsObject



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