Displaying 1 result from an estimated 1 matches for "find_by_default_categori".
Did you mean:
find_by_default_category
2005 Dec 17
1
Adding model attribute without db field
I need to add an attribute to a model but there is no need to add a
corresponding database field. The model is a child of ActiveRecord and
it corresponds to a table in my DB but when I add it in the usual Ruby
way, I get a ''number of redirects exceeded'' error.
Here is my code;
The model;
class Category < ActiveRecord::Base
attr :status
end
The controlller;