lib/extensions/action_dispatch/routing/mapper.rb
# Generate a controller using the directory and file name if it doesn't exist.
# @param directory_name [String]
Generate a controller using the directory and file name if it doesn't exist.
Generate a controller using the directory and file name if it doesn ' t exist .
def generate_controller(directory_name = "pages")
        if directory_name == "pages"
          generate_pages_controller
        else
          generate_custom_controller(directory_name)
        end
      end
def generate_controller ( directory_name = "pages" ) if directory_name == "pages" generate_pages_controller else generate_custom_controller ( directory_name ) end end
Generate a controller using the directory and file name if it doesn't exist.
Generate a controller using the directory and file name if it doesn ' t exist .
directory_name
None