Displaying 1 result from an estimated 1 matches for "gap_id".
Did you mean:
cap_id
2006 Jan 08
2
Why is my record readonly=>true?
...der to create my object
def review
@bit = Bit.find(:first,
:select => "bits.*,subjects.id as sid,
subjects.name,gaps.id as gid, gaps.gap",
:joins => "left join (subjects,gaps) on
(bits.subject_id = subjects.id and bits.gap_id = gaps.id)",
:conditions => "bits.status=''a'' and
next_review <= CURDATE()",
:order => "gap,next_review,subject_id,bits.id")
end
But when I try to save it rails complains that it is read-only...