Methods
A
C
Instance Public methods
add_routes()
# File railties/lib/rails/generators/rails/controller/controller_generator.rb, line 11
def add_routes
  actions.reverse.each do |action|
    route %Q{get "#{file_name}/#{action}"}
  end
end
create_controller_files()
# File railties/lib/rails/generators/rails/controller/controller_generator.rb, line 7
def create_controller_files
  template 'controller.rb', File.join('app/controllers', class_path, "#{file_name}_controller.rb")
end