Displaying 1 result from an estimated 1 matches for "questionset".
Did you mean:
question_set
2009 May 06
3
Using ActiveRecord in FXRuby application
...x. But
once I do that I get a bunch of warnings.
Here is the sample code:
require ''rubygems''
require ''active_record''
require File.expand_path(File.dirname(__FILE__) + "/question_set")
# require ''fox16''
# include Fox
question_set = QuestionSet.new
3.times do
question = Question.new
4.times do
choice = Choice.new
question.choices << choice
end
question_set.questions << question
end
question_set.save!
QuestionSet, Question and Choice inherit from ActiveRecord::Base
QuestionSet has many questions, Question h...