add_routes() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/lib/rails/generators/rails/controller/controller_generator.rb, line 15
      def add_routes
        unless options[:skip_routes]
          actions.reverse_each do |action|
            # route prepends two spaces onto the front of the string that is passed, this corrects that.
            route indent(generate_routing_code(action), 2)[2..-1]
          end
        end
      end
Register or log in to add new notes.