Class: Rails::Generators::ScaffoldControllerGenerator

Inherits:
NamedBase show all
Includes:
ResourceHelpers
Defined in:
railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb

Instance Method Summary collapse

Methods included from ResourceHelpers

included, #initialize

Methods inherited from NamedBase

#initialize

Methods inherited from Base

base_root, class_option, default_source_root, desc, hook_for, inherited, namespace, remove_hook_for, source_root

Methods included from Actions

#add_source, #capify!, #environment, #gem, #gem_group, #generate, #git, #initializer, #lib, #plugin, #rake, #rakefile, #readme, #route, #vendor

Instance Method Details

#create_controller_filesObject



13
14
15
# File 'railties/lib/rails/generators/rails/scaffold_controller/scaffold_controller_generator.rb', line 13

def create_controller_files
  template 'controller.rb', File.join('app/controllers', class_path, "#{controller_file_name}_controller.rb")
end