This project is archived and is in readonly mode.

#1800 ✓wontfix
ronin-45053 (at lighthouseapp)

Resources Routing ending in 'base'

Reported by ronin-45053 (at lighthouseapp) | January 26th, 2009 @ 08:56 PM | in 2.x

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.

Comments and changes to this ticket

  • CancelProfileIsBroken

    CancelProfileIsBroken March 8th, 2009 @ 01:06 PM

    • State changed from “new” to “wontfix”

    We should handle "database" in particular correctly since #1942 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 is the same issue.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

People watching this ticket

Pages