Here is a basic design for a generic product database using STI. This allows different kinds of things to be gropuped by class and inherited normally, and makes it easy to have different associations/association rules on similiar things. Something like a cart, is an order by another name, and just has to be re-typed into something like CompletedOrder when completed.
Sunday, July 29, 2007
Basic generic products db
Posted by RubyPanther at 7/29/2007 01:53:00 PM 1 comments
Labels: db ar design sti
Saturday, April 28, 2007
A handy hash method
I am testing posting code :)
class Hash
def except(*arr)
hsh = self.dup
arr.each do |k|
hsh.delete(k)
end
hsh
end
end
Posted by RubyPanther at 4/28/2007 04:02:00 PM 0 comments
Welcome to gRoR!
We will be discussing Ruby programming using the RubyOnRails web framework and other tools. I don't know yet if blogger will work well for this or not. Let me know if you have any issues.
Posted by RubyPanther at 4/28/2007 02:18:00 PM 0 comments
Labels: blogger, hello world
Subscribe to:
Posts (Atom)