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
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
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
3 matches
Mail list logo