class SuggestedAnswer < ActiveRecord::Base belongs_to :organisation belongs_to :question accepts_nested_attributes_for :question attr_accessible :organisation_id, :question_id, :text, :is_example, :as => [:default, :admin] def to_s "#{text}" end end