search for: m000625

Displaying 2 results from an estimated 2 matches for "m000625".

Did you mean: 1000625
2005 Apr 20
2
Has And Belongs To Many Validations
...e courses_teachers table as teaching Spanish 101, if someone tries to add that same teacher/course combination to the table again, it will not be allowed. I thought I could use something like validates_uniqueness_of ( http://rails.rubyonrails.com/classes/ActiveRecord/Validations/ClassMethods.html#M000625 ), but I''m not sure how to go about. How do you do this? Thanks, kd
2006 Jun 15
3
Can I call MySql statements directly??
Hi All. I have a mysql statement that I would really really like to call from my Ruby program which goes like this: SELECT a, b, DAYOFWEEK(date_time) as DOW, HOUR(date_time) at hr, AVG(x/y) FROM records; This is possible by creating a 3-dimentional array of a, b, date_time containing x/y, and then finding averages and putting it into a 4-dimensional array of a, b, dow,