{
    "mode": "ri",
    "parameter": "ActionController::UrlFor",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/ri/ActionController%3A%3AUrlFor/json",
    "generated": "2026-07-29T13:35:50Z",
    "sections": {
        "ActionController::UrlFor": {
            "content": "------------------------------------------------------------------------",
            "subsections": []
        },
        "Includes:": {
            "content": "AbstractController::UrlFor (from /home/chedong/.local/share/rdoc)\n\n------------------------------------------------------------------------",
            "subsections": []
        },
        "Extended by:": {
            "content": "ActiveSupport::Concern (from /home/chedong/.local/share/rdoc)\n\n(from /home/chedong/.local/share/rdoc)\n------------------------------------------------------------------------\nIncludes urlfor into the host class. The class has to provide a\nRouteSet by implementing the routes method. Otherwise, an exception\nwill be raised.\n\nIn addition to AbstractController::UrlFor, this module accesses the HTTP\nlayer to define URL options like the host. In order to do so, this\nmodule requires the host class to implement env which needs to be\nRack-compatible and request which is either an instance of\nActionDispatch::Request or an object that responds to the host,\noptionalport, protocol and symbolizedpathparameter methods.\n\nclass RootUrl\ninclude ActionController::UrlFor\ninclude Rails.application.routes.urlhelpers\n\ndelegate :env, :request, to: :controller\n\ndef initialize(controller)\n@controller = controller\n@url        = rootpath # named route from the application.\nend\nend\n------------------------------------------------------------------------",
            "subsections": []
        },
        "Instance methods:": {
            "content": "urloptions\n",
            "subsections": []
        }
    },
    "flags": [],
    "examples": [],
    "see_also": []
}