Feature How to use Miniprofiler for rails rails2 app?

 
  • Created:10 months ago
  • Modified:9 months ago by sam
  • Status:new
  • Owner:unassigned
1 supporter

Already I’m very like your open source (Miniprofiler) and I want to use it in my rails 2.x app. However, it’s not support. How to use in rails 2? can you support me to do manual because I’ve looked url https://github.com/SamSaffron/MiniProfiler/blob/master/Ruby/lib/miniprofilerrails/railtie.rb but don’t clean to hook it up manually.

Thanks, Chon

 
  • apologies will try to answer this tomorrow, in essence you hook it up in environment.rb or an initializer – sam 10 months ago
  • Sorry, I don’t understand “hook” so you can explain more …? – domic 9 months ago
votes newest oldest
 
  • Created:9 months ago

Have you tried running the following in either your environment.rb config block or an intializer:

config.middleware.insert(0, Rack::MiniProfiler)

You can pretty much lift the whole railtie in

 
 
  • Created:9 months ago
  • Modified:9 months ago

Sam, I was trying to add config.middleware.insert(0, Rack::MiniProfiler) to environment.rb and have a error `loadmissingconstant': uninitialized constant Rack::MiniProfiler (NameError) when start server

https://dl.dropbox.com/u/8811525/start_server.png https://dl.dropbox.com/u/8811525/environment.png

 
  • did you include it in your Gemfile or require rack-mini-profiler in your environment – sam 9 months ago
  • Hi Sam, My problem has resolved but I have other problem that I went to all sites and mysql query not showing up – domic 9 months ago
  • that mean the SQL column is empty – domic 9 months ago