[Rails] Re: Stack level too deep problem

2011-03-11 Thread Matt Jones
On Mar 10, 2:46 pm, Mo Al li...@ruby-forum.com wrote: Hi I am getting a Stack level too deep error when i try creating a new critical process object: here is the code: class Role ActiveRecord::Base   has_many :authorizations   has_many :critical_processes, :through = :authorizations  

[Rails] Re: Stack level too deep problem

2011-03-10 Thread Martin Streicher
Your associations are incorrect. Both Role and CriticalProcess refer to each other via has_many -- one of them must use belongs_to. And where is the Authorization class? What is it's relationship to CriticalProcess? Fix the associations problem and the loop will likely go away. Why? I suspect

[Rails] Re: stack level too deep problem

2011-01-24 Thread Rod Mclaughlin
Thanks. I was doing exactly the same thing and having exactly the same issue. The only difference was I had original_link_to not link_to_original. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Talk