search for: testattrib

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

Did you mean: getattrib
2006 Jun 14
3
Attributes for a model which are excluded from DB?
If I want to do this but not save to the database, how can I go about it? things.each do |thing| changed = someotherqueryresult thing.update_attribute :testattrib, changed end Essentially I want to create a collection called things with some extra attributes that are not saved into the database, as they are just used for sorting in a view and should not be saved (in fact saving them wastes time each time I refresh the view). Can anyone help? Thanks,...