Open schandra123 opened 14 years ago
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.
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.
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:in
require'