Displaying 1 result from an estimated 1 matches for "jesq".
Did you mean:
jes
2006 Sep 05
1
Inflector::pluralize("Agencies")=="Agency" ?
...astring)
Inflector::singularize(astring)==astring
end
def pluralize2(astring)
is_singular?(astring) ? Inflector::pluralize(astring) : astring
end
def singularize2(astring)
is_plural?(astring) ? Inflector::singularize(astring) : astring
end
magpie
"Just Enough Software Quality":http://jesq.blogspot.com
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3Mboc...