Class: Rails::Generators::ScaffoldControllerGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::ScaffoldControllerGenerator
- Includes:
- ResourceHelpers
- Defined in:
- lib/generators/rails/scaffold_controller_generator.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#create_controller_files ⇒ Object
20 21 22 23 |
# File 'lib/generators/rails/scaffold_controller_generator.rb', line 20 def create_controller_files template_file = .api? ? "api_controller.rb" : "controller.rb" template template_file, File.join("app/controllers", controller_class_path, "#{controller_file_name}_controller.rb") end |