Displaying 1 result from an estimated 1 matches for "top_keyword".
2006 Aug 15
0
SystemStackError: stack level too deep
...ook 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)
=> #<Keyword:0x2595ec4 @attributes={"updated_at"=>"2006-07-25
23:50:54", "text"=>&qu...