[Rails] Railspdf plugin problem

Heru Yuwono heru.yuwono at gmail.com
Mon Jan 2 01:54:53 GMT 2006


Yes, i am sure it's not about code conflict, but i guess it's about my app's
setting or something. My app run perfectly when there's no 'railspdf'
directory in /vendor/plugins/, both in webrick and apache+scgi. here's what
i got when i run webrick with railspdf installed in /vendor/plugins:

D:\InstantRails\rails_apps\production>ruby script/server
=> Booting WEBrick...
D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib/active_suppo
rt/dependencies.rb:200:in `const_missing': uninitialized constant UserEngine
(Na
meError)
        from ./script/../config/../app/helpers/application_helper.rb:4
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:207:in `load'
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:207:in `load'
        from
./script/../config/../vendor/plugins/engines/lib/dependencies_exten
sions.rb:45:in `require_or_load'
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:22:in `depend_on'
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:178:in `require_dependency'
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:178:in `require_dependency'
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:194:in `const_missing'
         ... 23 levels...
        from
D:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require
.rb:21:in `require__'
        from
D:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require
.rb:21:in `require'
        from D:/InstantRails/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5
/lib
/active_support/dependencies.rb:214:in `require'
        from script/server:3

I have no idea what to do, except deleting 'railspdf' dir from
/vendor/plugins in order to make my app run. Or is there any specific
setting in environment.rb ? here's what i have now:

---cut---

module LoginEngine
  config :salt, "xxxxx"
  config :use_email_notification, false
end

module UserEngine
  config :admin_login, "admin"
  config :admin_email, "xxx at xxxxx"
  config :admin_password, "xxxx"
end

module Railspdf

end

Engines.start :login, :user, :railspdf
UserEngine.check_system_roles



On 12/31/05, James Adam <james.adam at gmail.com> wrote:
>
> There doesn't appear to be any code conflict between the Railspdf
> plugin and the user engine. Can you post the full error message you
> get?
>
> My intutition is suggesting that the Engines plugin itself isn't being
> loaded for some reason.
>
> - james
>
> On 12/31/05, Heru Yuwono <heru.yuwono at gmail.com> wrote:
> > Yes, i do, using gem install pdf-writer. i followed this article:
> >
> > http://www.artima.com/rubycs/articles/pdf_writerP.html
> >
> > and it worked fine.
> >
> >
> >
> > On 12/31/05, Josh Charles <josh.charles at gmail.com> wrote:
> > > On 12/30/05, Heru Yuwono <heru.yuwono at gmail.com> wrote:
> > > > I am using latest preview of InstantRails, with login_engine and
> > user_engine
> > > > installed. Seems that Railspdf plugin has confilct with user_engine
> > plugin.
> > > > But when i deleted the railspdf directory in /vendor/plugins and
> started
> > > > webrick, it run without any problems.
> > >
> > > Do you have PDF::Writer installed?
> > > _______________________________________________
> > > Rails mailing list
> > > Rails at lists.rubyonrails.org
> > > http://lists.rubyonrails.org/mailman/listinfo/rails
> > >
> >
> >
> > _______________________________________________
> > Rails mailing list
> > Rails at lists.rubyonrails.org
> > http://lists.rubyonrails.org/mailman/listinfo/rails
> >
> >
> >
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060102/ed9224a0/attachment.html


More information about the Rails mailing list