> 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:238305
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to