Class: Phlex::Generators::ViewGenerator

Inherits:
BaseGenerator
  • Object
show all
Defined in:
lib/generators/phlex/view/view_generator.rb

Instance Method Summary collapse

Methods inherited from BaseGenerator

set_source_root

Instance Method Details

#create_viewObject



9
10
11
12
# File 'lib/generators/phlex/view/view_generator.rb', line 9

def create_view
	@view_path = File.join("app", "views", class_path, "#{file_name}.rb")
	template "view.rb.erb", File.join(destination_root, @view_path)
end