search for: update_children_count

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

2006 Apr 07
2
errors.add_to_base
...e a parent of itself!") else @parent = Keyword.find(:first, :conditions => [ "name = ?", parent_name ]) if @parent self.parent_id = @parent.id # this is necessary as long as the counter_cache of acts_as_tree is broken @parent.update_children_count else errors.add_to_base("Parent invalid! No keyword found with name: " + parent_name) end end end The controller has: @keyword.set_parent(parent_name) The view has: <%= error_messages_for ''keyword'' %> the messages from...