Hi. I''m running Rails 3.0 on Mac OS X, and I''m trying to get the acts_as_list, other plugins, as well as libraries running. From what I understand, rails should be loading those automatically once placed in the proper directories. However, that is not happening in my case, and I''m getting errors such as "undefined method `acts_as_list'' for #<Class:0x1040dfde0>". acts_as_list is in vendor/plugins. Any insights would be greatly appreciated! -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Put the proper entry in your Gemfile, then run ''bundle install''. On Sep 30, 2010 5:43 PM, "RailsPeg" <largestscreen-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> Hi. > > I''m running Rails 3.0 on Mac OS X, and I''m trying to get the > acts_as_list, other plugins, as well as libraries running. From what > I understand, rails should be loading those automatically once placed > in the proper directories. However, that is not happening in my case, > and I''m getting errors such as "undefined method `acts_as_list'' for > #<Class:0x1040dfde0>". acts_as_list is in vendor/plugins. > > Any insights would be greatly appreciated! > > -- > 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email torubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> .> For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.>-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 30, 7:11 pm, Greg Donald <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Put the proper entry in your Gemfile, then run ''bundle install''.I put "gem ''acts_as_list''" in Gemfile and ran "bundle install" but I''m still getting the same error. And I don''t necessarily need to run acts_as_list as a gem do I? Also, this would not help with files in the lib directory, which aren''t loaded either. Thanks, Yaron -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
I found the problem. It seems Rails 3 is no longer configured for auto-loading by default. To get the libraries and plugins loaded I added the following lines to config/application.rb: config.autoload_paths += %W(#{config.root}/lib) config.plugin_paths = [File.join(RAILS_ROOT, ''vendor'', ''other_plugins'')] More on this on the following pages: https://rails.lighthouseapp.com/projects/8994/tickets/5218-rails-3-rc-does-not-autoload-from-lib http://oreilly.com/ruby/excerpts/ruby-advanced-rails/rails-plugins.html Regards, Yaron -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.