Forum: Ruby on Rails `const_missing':NameError: uninitialized constant {const_id}

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C5c0e0499446b84fd3bcc61cf7862539?d=identicon&s=25 Thani Ararsu (thaniyarasu)
on 2008-11-10 07:17
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 ?
Ac4123f7af05808b1ec7a1bbdb69ce07?d=identicon&s=25 Priyanka Pathak (priyanka-pathak)
on 2009-10-03 07:21
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 Pathak
 Rails Developer
This topic is locked and can not be replied to.