Class: Rails::Generators::ActiveScaffoldControllerGenerator
- Includes:
- ResourceHelpers
- Defined in:
- lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb
Overview
metagenerator
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#create_controller_files ⇒ Object
17 18 19 20 |
# File 'lib/generators/active_scaffold_controller/active_scaffold_controller_generator.rb', line 17 def create_controller_files template 'controller.rb', File.join('app/controllers', class_path, "#{controller_file_name}_controller.rb") template 'helper.rb', File.join('app/helpers', class_path, "#{controller_file_name}_helper.rb") end |