Displaying 1 result from an estimated 1 matches for "____snip____".
Did you mean:
___snip_____
2006 Feb 28
3
Agile Web Development Example Application Question
...just copied them from what the book''s Web site supplies. So now I have:
app/controllers/store_controller.rb>
class StoreController < ApplicationController
def index
@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_av...