This would be nice to have in the Inflector Class in core. Adding this
method of the String class probably wont make it into core if submitted.
Just something to think about.
How about sanctify ? It’s kinda like your cleansing it of its sins.
[mailto:email@example.com] On Behalf Of Dylan S.
Sent: Saturday, January 28, 2006 3:13 PM
Subject: Re: [Rails] What’s the verb form of id?
+1 on Luke’s comment. I’m too lazy to think rationaly about the english
language like he did… but he made some good points
On 1/28/06, Rabbit < firstname.lastname@example.org> wrote:
Hey Duane J. I like your method better! Thanks for sharing.
I gotta agree with Luke on the Rubyesque idiom, much cleaner. I shall
my code accordingly.
On 1/28/06, Luke R. < email@example.com
mailto:firstname.lastname@example.org > wrote:
ID is short for identification the related verb of which is identify, as
Alex pointed out.
The appropriate verify_ macro would be verify_identity_of
Looking at your original examples perhaps you don’t mean verb form but
mean what word should you use for the process of turning something into
If thats the case, I’d avoid the mangling of the English language that
Rails methods take, and use the more conventional Ruby idiom, to_id()
to_s, to_i etc.).
“My, what a beautiful day!”.to_id
If thats not clear enough or possibly confusing with the normal use of
a Rails app, perhaps to_identifier() instead.
Rails mailing list