Displaying 2 results from an estimated 2 matches for "virtual_enumerations".
2006 Jun 18
10
acts_as_enumerated
...ng on a dating website and there are lots of options I want to
store as enumerated like
Status; divorce, single,
Sex: male, female
Eye color; blue, brown, green....
and lots more....
But I do not wanna keep them in seperate tables, and wanna keep them all
together.
Anyone has a working example virtual_enumerations.rb file for
acts_as_enumarated?
Thanks
Gokhan
--
Posted via http://www.ruby-forum.com/.
2006 Jun 26
5
How can I dynamiclly generate models?
I am trying to write a plugin, ''acts_as_commentable'', for my models -
Image, Book, Music and so on, I do not want to use polymorphic
association, so very model should have its own comment class.
Here is my code
acts_as_commentable.rb
module Commentable
def self.included(base)
base.extend(ClassMethods)
end
module ClassMethods
def