Source: show | on GitHub
# 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
# 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