Why not build a plugin to handle your singular routing; perhaps with other members of this community? You could then submit it as a patch or add to the Rails Wiki to let others know about the plugin.
Just my $0.02
On Jan 29,[masked]:43 PM, Loqi <[address removed]> wrote:
This pluralization thing is hardly a minor annoyance for me. My code
won't run now, because I'm trying to go RESTful.
When I first started using Rails, I just went along with the
pluralization regime because I figured it was thought through by
people who are smarter than I, and there must be some good reason for
it. But after a while, it annoyed me more and more, so i lobotomized
my inflector (see original message). This was unbelievably
liberating. Now I get all the good parts of Rails, that is,
EVERYTHING EXCEPT mandatory code pluralization, with none of the bad
I use this naming convention:
1. All identifiers are singular in all contexts.
2. That is all.
Everything was back on track until I started going RESTful. Rails
RESTful routing appears to rely on each identifier having two
distinct spellings for singular and plural forms in order to
function. I consider this a bug, not a desirable condition. I can
only hope the Rails team would agree that relying on an artifact of
the English language in order to keep your code from crashing is a
I don't know how to fix this, so I'm at a standstill. I'm facing a
decision to either re-write all my code to be pluralization-compliant
(and gargle with mouthwash every time I sit down at my keyboard and
submit to this), or abandoning the RESTful services.
On second thought, I will NEVER submit to pluralization. I'd sooner
code in PHP.
Does that mean there's some kind of movement to abolish forced pluralization?
>Let the routes dictate the mapping. Viva la revolution!
To the Bastille!
I want my code back.
This message was sent by Loqi ([address removed]) from The East Bay Ruby Meetup Group.
Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list ([address removed])
To learn more about Loqi, visit his/her member profile: http://ruby.meetup.com/81/members/4025980/
Customer Service: [address removed]
632 Broadway New York NY 10012 USA
[masked] - Direct
[masked] - Office
Daniel O'Shea / ThriveSmart, LLC