mediainfo gem

23 views
Skip to first unread message

Manuel

unread,
Jan 2, 2010, 6:19:50 AM1/2/10
to Phusion Passenger Discussions
Hi there,

Just realized that passenger is the source of my error, better late
then never :-)

Got this in my environment.rb:
config.gem 'mediainfo'

As soon I put "Mediainfo.new" somewhere in the controller or in a
model I get this error:

NoMethodError in TestController#index

undefined method `<' for nil:NilClass
RAILS_ROOT: /Users/schnittplatz-mobil/Development/Test

Application Trace | Framework Trace | Full Trace
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/
whiny_nil.rb:52:in `method_missing'
/Library/Ruby/Gems/1.8/gems/mediainfo-0.6.2/lib/mediainfo.rb:226:in
`initialize'
/Users/schnittplatz-mobil/Development/Test/app/controllers/
test_controller.rb:4:in `new'
/Users/schnittplatz-mobil/Development/Test/app/controllers/
test_controller.rb:4:in `index'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
base.rb:1331:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
base.rb:1331:in `perform_action_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
filters.rb:617:in `call_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
filters.rb:610:in `perform_action_without_benchmark'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/
core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/activesupport-2.3.5/lib/active_support/
core_ext/benchmark.rb:17:in `ms'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
benchmarking.rb:68:in `perform_action_without_rescue'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
rescue.rb:160:in `perform_action_without_flash'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
flash.rb:146:in `perform_action'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
base.rb:532:in `send'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
base.rb:532:in `process_without_filters'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
filters.rb:606:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
base.rb:391:in `process'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
base.rb:386:in `call'
/Library/Ruby/Gems/1.8/gems/actionpack-2.3.5/lib/action_controller/
routing/route_set.rb:437:in `call'

Never had something like this, didn't used script/server since
passenger is installed ^^

But if i test this thing in the console or with Webrick everything
works as expected.

Absolutely no idea how to fix this error or get this working, feels
like I tried everything :-)

Maybe somebody has an idea, would be great.

Regards,
Manuel

Reply all
Reply to author
Forward
0 new messages