On 02 Oct 2009, at 19:03, adedip wrote:
> @articles = Article.find(:all, :order => :date, :conditions =>
> {:author => aut, :date.year => tf.year..tt.year})
@articles = Article.find(:all, :order => :date, :conditions =>
["(YEAR(date) BETWEEN ? AND ?) AND author_id=?",tf.year, tt.year,
aut.id])
Just out of the top of my head.
Best regards
Peter De Berdt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---