JavaFree.org | RubyOnBr.org

RGhost - uninitialized constant RGhost::Color

Acompanhar RGhost - uninitialized constant RGhost::Color 6 posts, 4 participantes

3b3b79b6e0534dc6f493db085a279def?s=80&r=pg Alexandre Bini 2 posts

Olá, boa tarde.

Estou tentando rodar o RGhost aqui, mas quando executo, está me mostrando o seguinte erro:

NameError (uninitialized constant RGhost::Color):
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:279:in `load_missing_constant’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in `const_missing’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/font_map.rb:41:in `ps’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/ps_object.rb:18:in `instance_eval’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/ps_object.rb:18:in `initialize’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/function.rb:17:in `initialize’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/font_map.rb:39:in `new’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/font_map.rb:39:in `ps’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/font_map.rb:31:in `each’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/font_map.rb:31:in `ps’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/ps_object.rb:41:in `set’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/document.rb:162:in `ps’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/ruby_ghost_engine.rb:61:in `render’
C:/ruby/lib/ruby/gems/1.8/gems/rghost-0.8.5/lib/rghost/document.rb:234:in `render’
/app/models/business_person.rb:34:in `list_to_pdf’
/app/controllers/business_people_controller.rb:53:in `list_to_pdf’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1166:in `send’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:1166:in `perform_action_without_filters’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:579:in `call_filters’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:572:in `perform_action_without_benchmark’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue’
C:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/rescue.rb:201:in `perform_action_without_caching’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:13:in `perform_action’
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/connection_adapters/abstract/query_cache.rb:33:in `cache’
C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.1.1/lib/active_record/query_cache.rb:8:in `cache’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/caching/sql_cache.rb:12:in `perform_action’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `send’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:529:in `process_without_filters’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/filters.rb:568:in `process_without_session_management_support’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/session_management.rb:130:in `process’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/base.rb:389:in `process’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:149:in `handle_request’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in `dispatch’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `synchronize’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `dispatch’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi’
C:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in `dispatch’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/bin/../lib/mongrel/rails.rb:76:in `process’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/bin/../lib/mongrel/rails.rb:74:in `synchronize’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/bin/../lib/mongrel/rails.rb:74:in `process’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:159:in `process_client’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:158:in `each’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:158:in `process_client’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:285:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:285:in `initialize’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:285:in `new’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:285:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:268:in `initialize’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:268:in `new’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel.rb:268:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:282:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:281:in `each’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/configurator.rb:281:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/bin/mongrel_rails:128:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/lib/mongrel/command.rb:212:in `run’
C:/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.2-x86-mswin32/bin/mongrel_rails:281
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in `load’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in `load’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:503:in `load’
C:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/servers/mongrel.rb:64
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:355:in `new_constants_in’
C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:510:in `require’
C:/ruby/lib/ruby/gems/1.8/gems/rails-2.1.1/lib/commands/server.rb:39
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
script/server:3

 
Avatar nofxx 283 posts

Num do 10 minuto pro Shairon aparecer aqui…

Aqui
|
V

 
Avatar Mereghost 835 posts

Não sou o shairon, mas…

Alexandre, o que tu está tentando fazer. Tem como tu colar o trecho de código que causou o erro?

 
3b3b79b6e0534dc6f493db085a279def?s=80&r=pg Alexandre Bini 2 posts

é aquele exemplo básico do help…

Depois do nofxx me chingar muito, eu voltei o linux na minha máquina e aconteceu o mesmo problema…

estranho…

 
Avatar Shairon Toledo 1272 posts

Num do 10 minuto pro Shairon aparecer aqui…

Ehh, não fazem mais Shairon como antigamente … meu RSS tá lotado

NameError (uninitialized constant RGhost::Color):

Tem alguma coisa torta na sua configuração, tenta executar o mesmo código sem Rails, no irb pra testar, daí vc posta aqui o resultado.

 
Avatar nofxx 283 posts

10 minutos, 10 horas… o tempo é relativo, como dizia um doido ae…