Displaying 1 result from an estimated 1 matches for "_____end".
Did you mean:
___end
2006 Feb 28
3
Agile Web Development Example Application Question
...@products = Product.salable_items
end
end
and in the app/models/product.rb I have the new piece of code
____snip____
def self.salable_items
find(:all,
:conditions => "date_available <= now()",
:order => "date_available desc")
end
_____end snip____
When I try to access the store page, it returns:
Couldn''t find Product with ID=all AND date_available <= now()
/app/models/product.rb:21:in `salable_items''
app/controllers/store_controller.rb:4:in `index''
script/server:48
When I connect with the admin cont...