Class: Vxml::Generators::ControllerGenerator
- Inherits:
-
Erb::Generators::Base
- Object
- Erb::Generators::Base
- Vxml::Generators::ControllerGenerator
- Defined in:
- lib/generators/vxml/controller/controller_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_view_files ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/generators/vxml/controller/controller_generator.rb', line 9 def copy_view_files base_path = File.join("app/views", class_path, file_name) empty_directory base_path actions.each do |action| @action = action @path = File.join(base_path, filename_with_extensions(action)) template filename_with_extensions(:view), @path end end |