Thanks, Peter. I've added a heavily-modified version of this to trunk as 
of r74. Singular resources should be auto-detected and dealt with 
properly. In addition, there are now two additional controller methods, 
"singular?" and "plural?", which return whether or not the resource is 
singular or plural, respectively. They're both based on a very simple 
analysis of the controller name, so they may have to be overridden if 
you have very weird controller names. "plural?" is just defined as 
"!singular?", so if you just override "singular?" that's fine.

- Nathan

Peter Baker wrote:
> Maybe I got the wrong end of the stick, but make-resourceful doesn't
> seem to support singular resources? Here is a (not very thoroughly
> tested) patch
>
> Peter


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to