I have this:
Product.find(:all, :conditions => ['release_date >=? AND release_date <=?', @start, @start + @weeks.weeks], :order => "initial_stock DESC")
I understand conditions is now deprecated. This works fine locally but when I upload to heroku the order doesn’t work, so probably best I rewite right? Problem is each thing i’ve tried throws an error. Can anyone help?
Thanks!
This should do it: