search for: parent_categoryid

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

2008 May 19
2
x is not a number error??
I may be overlooking something really obvious here but I''m not getting it. I have a Category model. Categories can have sub categories and parent categories, but when a category doesn''t have a parent category, its "parent_categoryid" field is set to null. As far as I know, what I am doing here has been working in the past because there are many categories in my categories table with null parent_categoryid fields. For some reason, when I do: c = Category.find(12345) c.save It returns false when c.parent_categoryid = NULL...