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.

Allow customized regexp for id in map.resources

#351

This patch is an updated & tested version of the solutions proposed here.

It basically just allows for different formats for :id, which in turn allows for more informative/advanced RESTfull URLs.

github branch here

Reported by Ruy Asan · June 6th, 2008 @ 01:00 AM

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Pratik
    Pratik
    • Title changed from (resurected from trac) Allow customized regexp for id in map.resources to Allow customized regexp for id in map.resources
    • Tag set to actionpack, patch, routing, tested

    August 21st, 2008 @ 12:40 PM

  2. Pratik
    Pratik
    • State changed from new to incomplete

    The patch no longer applies cleanly. Could you please update against the lastest edge ?

    Thanks.

    August 21st, 2008 @ 12:41 PM

  3. Ruy Asan
    Ruy Asan

    Well, I was hoping 2.2.x will have fixed this, but no luck :(

    Here is the patch again (should apply cleanly, it's trivial) - unfortunately it also breaks existing unit tests now. I can't say I understand the routing code well enough to know what's really going on.

    However, the included unit test should illustrate the problem.

    December 4th, 2008 @ 09:59 AM

  4. Ruy Asan
  5. CancelProfileIsBroken