I have a Question model where the answer to the question can have
multiple db type (integer, string, boolean, ...).
I would like to know if you have a better solution than this one:
Ex: AnsweredQuestion.create(:question => 1, :answer => '5', :answer_type
My problem with this solution is that I can't question is that I can't
question the answered questions where the answer is > 2.
Any better idea?
Posted via http://www.ruby-forum.com/.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.