APIdock / Ruby on Rails
/
Browse About
method

namespace

v3.2.1 - Show latest stable - Class: ActionDispatch::Routing::Mapper::Resources
namespace(path, options = {})
public

See ActionDispatch::Routing::Mapper::Scoping#namespace

# File actionpack/lib/action_dispatch/routing/mapper.rb, line 1232
        def namespace(path, options = {})
          if resource_scope?
            nested { super }
          else
            super
          end
        end

Related methods

  • Instance methods
  • add_route
  • collection
  • decomposed_match
  • match
  • member
  • namespace
  • nested
  • new
  • resource
  • resources
  • resources_path_names
  • root
  • shallow
  • shallow?
  • Protected methods
  • protectedaction_options?
  • protectedaction_path
  • protectedapply_common_behavior_for
  • protectedcanonical_action?
  • protectedid_constraint
  • protectedid_constraint?
  • protectedname_for_action
  • protectednested_options
  • protectedparent_resource
  • protectedpath_for_action
  • protectedprefix_name_for_action
  • protectedresource_method_scope?
  • protectedresource_scope
  • protectedresource_scope?
  • protectedscope_action_options
  • protectedscope_action_options?
  • protectedshallow_scoping?
  • protectedwith_exclusive_scope
  • protectedwith_scope_level
APIdock API Documentation Browser

Implement the SPACE framework the right way with Swarmia.

© 2026 APIdock