Displaying 1 result from an estimated 1 matches for "keyword_result".
Did you mean:
keywordresult
2006 Aug 15
0
SystemStackError: stack level too deep
Hi
I have two models Keyword and KeywordResult, they basically look like this:
class KeywordResult < ActiveRecord::Base
belongs_to :keyword
validates_presence_of :title, :url, :keyword_id
end
class Keyword < ActiveRecord::Base
has_many :keyword_results, :dependent => :delete_all
acts_as_tree :order => "text", :foreign_key => "top_keyword"
end
Before you ask: I commented all other callbacks and hooks out.
now when I want to add a KeywordResult I get a SystemStackError.
>> kw = Keyword.find(72)
=> #<Key...