search for: infoupd

Displaying 1 result from an estimated 1 matches for "infoupd".

Did you mean: inoupd
2006 May 04
1
Problem with case / when conditional of db values
...troller depending on values in the db - in this case, the object ''info'' and the column ''status''. I would just like the controller to run an action depending on the value in the column, in this case ''OPEN'' or ''SENT'': 1. def infoupdate 2. case @info.attribute(:status) 3. when ''OPEN'' ... when ''SENT'' ... but keep getting: ''You have a nil object when you didn''t expect it! The error occured while evaluating nil.attribute'' I believe something is wrong wit...