Magnus Sjöstrand
2007-Nov-18 22:24 UTC
ActiveACL and "already initialized constant OPTIONS"
Hi, I''ve been trying to get ActiveACL to work with my new project, and as the title suggest I''m stuck. I get the following error: /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15: warning: already initialized constant OPTIONS /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:18: undefined method `options'' for []:Array (NoMethodError) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in `gem_original_require'' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in `require'' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in `new_constants_in'' from /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in `require'' from /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'' from script/server:3 I''ve googled and it seems like it''s caused by a missing gem, but I can''t for the life of me find which one it would be. I''ve already installed all the dependencies listed on ActiveACL''s project page. Anyone with some ideas? Or should I just roll my own, since I need object-level permissions and ActiveACL is the only plugin I found which handles that. thanks /Magnus -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I am having this exact same problem after installing SOAP4R, and cannot for the life of me figure out what the issue is. I got it working fine another box (OS X), but on my Linux box I continue to get this error. On Nov 18, 2:24 pm, Magnus Sjöstrand <rails-mailing-l...@andreas- s.net> wrote:> Hi, > > I''ve been trying to get ActiveACL to work with my new project, and as > the title suggest I''m stuck. I get the following error: > > /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15: > warning: already initialized constant OPTIONS > /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:18: > undefined method `options'' for []:Array (NoMethodError) > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in > `gem_original_require'' > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in > `require'' > from > /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in > `require'' > from > /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:in > `new_constants_in'' > from > /var/lib/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:in > `require'' > from > /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39 > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'' > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > from script/server:3 > > I''ve googled and it seems like it''s caused by a missing gem, but I can''t > for the life of me find which one it would be. I''ve already installed > all the dependencies listed on ActiveACL''s project page. > > Anyone with some ideas? Or should I just roll my own, since I need > object-level permissions and ActiveACL is the only plugin I found which > handles that. > > thanks > /Magnus > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Nathaniel Brown
2007-Nov-25 19:56 UTC
Re: ActiveACL and "already initialized constant OPTIONS"
Check your gems. I have seen errors like this when a gem is included in my plugins and hasn''t been installed on the machine. do a grep for require.. grep -rni ''require'' rails_project/* And make sure that all the libs it references are indeed on your machine. Another place to look is in the init.rb file. Or within the lib folder of the new plugin. On 11/21/07, Ron F <itripn-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > I am having this exact same problem after installing SOAP4R, and > cannot for the life of me figure out what the issue is. I got it > working fine another box (OS X), but on my Linux box I continue to get > this error. > > > > On Nov 18, 2:24 pm, Magnus Sjöstrand <rails-mailing-l...@andreas- > s.net> wrote: > > Hi, > > > > I''ve been trying to get ActiveACL to work with my new project, and as > > the title suggest I''m stuck. I get the following error: > > > > /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:15: > > warning: already initialized constant OPTIONS > > /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/servers/mongrel.rb:18: > > undefined method `options'' for []:Array (NoMethodError) > > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in > > `gem_original_require'' > > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:33:in > > `require'' > > from > > /var/lib/gems/1.8/gems/activesupport-1.4.4 > /lib/active_support/dependencies.rb:495:in > > `require'' > > from > > /var/lib/gems/1.8/gems/activesupport-1.4.4 > /lib/active_support/dependencies.rb:342:in > > `new_constants_in'' > > from > > /var/lib/gems/1.8/gems/activesupport-1.4.4 > /lib/active_support/dependencies.rb:495:in > > `require'' > > from > > /var/lib/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39 > > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > > `gem_original_require'' > > from /usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in > > `require'' > > from script/server:3 > > > > I''ve googled and it seems like it''s caused by a missing gem, but I can''t > > for the life of me find which one it would be. I''ve already installed > > all the dependencies listed on ActiveACL''s project page. > > > > Anyone with some ideas? Or should I just roll my own, since I need > > object-level permissions and ActiveACL is the only plugin I found which > > handles that. > > > > thanks > > /Magnus > > -- > > Posted viahttp://www.ruby-forum.com/. > > >-- Nathaniel Steven Henry Brown 604-724-6624 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---