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
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
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