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/mini_profiler_rails/railtie.rb but don't clean to hook it up manually.
Have you tried running the following in either your environment.rb config block or an intializer:
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 `load_missing_constant': uninitialized constant Rack::MiniProfiler (NameError) when start server
apologies will try to answer this tomorrow, in essence you hook it up in environment.rb or an initializer
Sorry, I don't understand "hook" so you can explain more ...?
did you include it in your Gemfile or require rack-mini-profiler in your environment
Hi Sam, My problem has resolved but I have other problem that I went to all sites and mysql query not showing up
that mean the SQL column is empty
@sam I am trying to use it in Rails 2.3 but I am getting an error "undefined method `set_cookie_header!' for Rack::Utils:Module" when I am trying to load the page,does it really work with Rails 2.x or shall I give up on that ?, I badly need this profiler for my project.Please suggest some workaround or any alternatives.
@domic Are you able to fix your issue and able to use it for Rails 2.x ?
Really not sure what to do about Rails 2... have not used it in many years.