uninitialized constant Rack::RubyProf

385 views
Skip to first unread message

Holger Schmeisky

unread,
Sep 6, 2013, 5:23:10 AM9/6/13
to ruby-opt...@googlegroups.com
Hi,

I am trying to run  ruby-prof on a rails 2.3.10 application, and after adding

config.middleware.use Rack::RubyProf, :path => '/home/deploy/profile', :min_percent => 0

to production.rb I get an error when accessing the application via the browser:

Error message:
uninitialized constant Rack::RubyProf

Exception class:
NameError


Rubyprof is installed correctly on the system, it is added to the gemfile and "bundle install" lists it as installed. I installed it the same way on a Rails 3 deployment and it worked fine. Is there any difference how I should configure it in Rails 2?

Regards,
Holger

Holger Schmeisky

unread,
Sep 10, 2013, 1:53:16 PM9/10/13
to ruby-opt...@googlegroups.com
For the googlers: I added require 'ruby-prof' to the production.rb, that helped. Maybe there is a difference between how Rails 2 and Rails 3 require gems...
Reply all
Reply to author
Forward
0 new messages