Displaying 2 results from an estimated 2 matches for "erolfornol".
Did you mean:
erolfornoles
2010 Oct 14
7
undefined method?
I''m trying to learn rails as I go along, and having a bit of trouble.
There is an undefined method cropping that I don''t know why rails
thinks should be there.
Firstly, I''m using rails 3, ruby 1.9.2
I have a controller with an index action This part works fine, but i
am trying to add a comment form to the page that is rendered by that
index action.
Supposing my
2010 Nov 05
2
ActiveRecords queries: .where vs .find
I have a dataset, which contains a day column that I would like to
retrieve results on. Is there any reason why daily_stats.where(''day =
Date(?)'', dte).first returns and empty set,
daily_stats.find(:first, :conditions => [''date(day) = ?'', dte])
returns the correct data and daily_stats.where({:created_at =>
(date.midnight - 1.day)..date.midnight}).first