`const_missing':NameError: uninitialized constant {const_id}


#1

magic_multi_connection-1.2.1 -error

when i start console i got this error

C:/ruby/lib/ruby/gems/1.8/gems/magic_multi_connections-1.2.1/lib/magic_multi_connections/connected.rb:20:in
`const_missing’:NameError: uninitialized constant {const_id}

any idea ?


#2

Hello,
I also have same problem. but i fix it by making patch in
lib/connected.rb of magic_multi_connections gem.

replace

raise NameError.new ( “uninitialized constant # (const_id)”) unless
target_class target_class

with

return unless target_class

try this out, it’s solved your problem.

-thanks
Priyanka P.
Rails Developer