Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Use :namespace instead of :path_prefix to determine controller module namespace

#544

Example of the problem is at: http://pastie.org/227073

:namespace is supposed to be the module where controller exists. :path_prefix can contain anything, including variables, which makes it unsuitable for determining the module for a controller.

Reported by Tarmo Tänav · July 3rd, 2008 @ 03:52 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [a37d065f85941e1fe746dff4d42f015e1618834f]) Use :namespace instead of :path_prefix for finding controller. [#544 state:resolved]

    :namespace is supposed to be the module where controller exists.

    :path_prefix can contain anything, including variables, which

    makes it unsuitable for determining the module for a controller.

    Signed-off-by: Pratik Naik

    http://github.com/rails/rails/co...

    July 3rd, 2008 @ 04:15 PM

  2. Repository
    Repository

    (from [8887f2076a52a160bf8c852b5cd04ea588eaa46b]) Use :namespace instead of :path_prefix for finding controller. [#544 state:resolved]

    :namespace is supposed to be the module where controller exists.

    :path_prefix can contain anything, including variables, which

    makes it unsuitable for determining the module for a controller.

    Signed-off-by: Pratik Naik

    Conflicts:

    actionpack/test/controller/routing_test.rb

    Signed-off-by: Michael Koziarski

    http://github.com/rails/rails/co...

    July 24th, 2008 @ 11:33 AM