This would be nice to have in the Inflector Class in core. Adding this
as a
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.
Bob S.
http://www.railtie.net/
From: [email protected]
[mailto:[email protected]] On Behalf Of Dylan S.
Sent: Saturday, January 28, 2006 3:13 PM
To: [email protected]
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 < [email protected]> 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
change
my code accordingly.
Good discussion.
On 1/28/06, Luke R. < [email protected]
mailto:[email protected] > 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
you
mean what word should you use for the process of turning something into
its
identity form?
If thats the case, I’d avoid the mangling of the English language that
some
Rails methods take, and use the more conventional Ruby idiom, to_id()
(like
to_s, to_i etc.).
“My, what a beautiful day!”.to_id
=> “my_what_a_beautiful_day”
If thats not clear enough or possibly confusing with the normal use of
id in
a Rails app, perhaps to_identifier() instead.
Cheers
Luke
Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails