Skip to content
This repository has been archived by the owner on Dec 2, 2017. It is now read-only.

noob question- script/generate fetcher_daemon MailerDaemon throws Error #7

Open
schandra123 opened this issue Jun 7, 2010 · 2 comments

Comments

@schandra123
Copy link

I get this error when I try to generate a daemon. I have ruby 1.8.7 and rails 2.3.8.
I installed the fetcher daemon by doing:

script/plugin install git://github.com/look/fetcher.git

What could I be doing wrong?

/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:in gem_original_require': no such file to load -- rails/generators (MissingSourceFile) from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31:inrequire'

@look
Copy link
Owner

look commented Jun 7, 2010

Hi, I just tried it with Rails 2.3.5 and it worked fine. I don't have a 2.3.8 app handy but I will give it a shot to try to replicate.

Just to clarify, you've got the plugin installed correctly, but when you run script/generate fetcher_daemon foobar it doesn't work?

P.S.: You can copy the files out of the generator's templates to get going manually.

@anujbiyani
Copy link

I was getting the same issue with Ruby 1.8.7 and Rails 2.3.2. I changed the first couple lines of vendor/plugins/fetcher/lib/generators/fetcher_daemon/fetcher_daemon_generator.rb to: require 'rails_generator'

class FetcherDaemonGenerator < Rails::Generator::NamedBase

This helped a little bit -- now the error I get is:
undefined method `source_root' for FetcherDaemonGenerator:Class

As far as I can tell I have the Rails::Generator::Base class correctly inherited (through NamedBase) so I'm not sure what to do from here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants