The method IS defined, but in the background is what I guess he means. That
does sound pretty cool.

<!----------------//------
andy matthews
web developer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->

-----Original Message-----
From: Bryan Stevenson [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 20, 2006 10:53 AM
To: CF-Talk
Subject: Re: Ruby (on Rails) vs Coldfusion


> Remember our class that provides this looks like this
>
> class Order < ActiveRecord::Base
> end
>
> I could also do this
>
> Order.find_by_state("Virginia")
>
> Note that I'm not adding that method to the code. It just gets figured
> out. I can do this too
>
> Order.find_by_state_and_firstname("Virginia","Bob")

Well John I'll have to investigate further.  If you are saying that Ruby has
built in methods in a buiult-in class called order, then that is pretty
interesting.  I may also have completely missed what you were saying ;-)


I must say this line scares me:

> Note that I'm not adding that method to the code. It just gets figured
> out. I can do this too

How the hell does it "just know what to do with it" if the method isn't even
defined???

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:238307
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to