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.

Resources Routing ending in 'base'

#1800

When using map.resources with a model ending in 'base' it will not generate singular helpers.

Using script/generate scaffold databases, navigating to /databases will fail with undefined local variable or methodnew_database_path' for #<ActionView::Base:0xXXXXXX>. This happens with anything ending in base, even something likeplant_base.

Reported by ronin-45053 (at lighthouseapp) · January 26th, 2009 @ 08:56 PM

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

Activity

  1. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from new to wontfix

    We should handle "database" in particular correctly since #1942 [PATCH] Inflection of "databases" was committed.

    The more general case is because the pluralization doesn't round-trip:

    "base".pluralize.singularize => "basis"

    You can workaround by setting up your own inflections. #2046 Strange pluralize and routing is the same issue.

    March 8th, 2009 @ 01:06 PM