Displaying 1 result from an estimated 1 matches for "find_by_student_numb".
Did you mean:
find_by_student_number
2010 Feb 04
3
Checking column in table to see if value exists?
Hey all,
What if I want to check a column in a table to see if a value exists and
if it doesn''t, then update the existing record with the specified value
and if it does exist increment by 1 from the previous incrementation of
the value. And do it using the model (or controller if it''s unable to be
done in the model). Something like this:
def test!
update_attributes