spilth
5 post(s)
|
TuneUp looks great but unfortunately it’s not working for me. Here are the two problems I’m having:
1) When starting up Mongrel I get the following error: FiveRuns TuneUp (v0.8.17): Logging in /Users/brian/Projects/GeekFor/geekfor/log/tuneup.log DEPRECATION WARNING: Dependencies is deprecated! Use ActiveSupport::Dependencies instead. See http://www.rubyonrails.org/deprecation for details. (called from /Library/Ruby/Gems/1.8/gems/fiveruns_tuneup-0.8.17/lib/fiveruns_tuneup.rb:1)
I addressed this problem by changing my /Library/Ruby/Gems/1.8/gems/fiveruns_tuneup-0.8.17/lib/fiveruns_tuneup.rb to the following suggested on the board:
deps = defined?(ActiveSupport::Dependencies) ? ActiveSupport::Dependencies : Dependencies deps.load_paths.unshift File.dirname(FILE)
2) Whenever I load a page I get the following error:
ActionController::RoutingError (No route matches ”/tuneup/sandbox” with {:method=>:get}): /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/route_set.rb:384:in `recognize’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:148:in `handle_request’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in `dispatch’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `synchronize’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `dispatch’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in `dispatch_without_newrelic’
Here are my version details: - Mac OS X 10.5.5 - Rails 2.1.1 - Ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] - RubyGems 1.2.0
|
Rachel G
Administator
50 post(s)
|
Hi spilth,
We have a work around for the deprecation error you are seeing. You can add this to the tune.rb file. We will have a fix in the next release of the TuneUp gem.
deps = defined?(ActiveSupport::Dependencies) ? ActiveSupport::Dependencies : Dependencies
deps.load_paths.unshift File.dirname(__FILE__)%
We are working on the /tuneup/sandbox routing issue. I will post another comment here when I have more data.
Thanks, Rachel
|
spilth
5 post(s)
|
Yes, I state in my original post that I found the workaround to the Deprecation problem. Unfortunately the routing problem still seems to prevent me from seeing that TuneUp bar at all.
|
Rachel G
Administator
50 post(s)
|
Hi Spilth,
We do have a work around for the routing problem. If you can rename the fiveruns_tuneup plugin in your /vendor/plugins directory to zfiveruns_tuneup the TuneUp bar should show up.
We use alias_method_chain for the routing, but it looks like there is another plugin that is monkey-patched, so our plugin will need to load last.
Sorry for the delay in getting this out.
Thanks, Rachel
|
spilth
5 post(s)
|
I’m using Rails 2.1 so I’m using the Gem, which means I don’t have a vendor/plugins/firveruns_tuneup directory.
|
spilth
5 post(s)
|
Can anybody provide a solution to my second problem?
Whenever I load a page I get the following error: ActionController::RoutingError (No route matches ”/tuneup/sandbox” with {:method=>:get}): /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/routing/route_set.rb:384:in `recognize’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:148:in `handle_request’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:107:in `dispatch’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `synchronize’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:104:in `dispatch’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi’ /Library/Ruby/Gems/1.8/gems/actionpack-2.1.1/lib/action_controller/dispatcher.rb:35:in `dispatch_without_newrelic’
|
spilth
5 post(s)
|
It seems my problem is that New Relic RPM and FiveRuns TuneUp don’t like to be in the same Rails project. Once I disabled NewRelic RPM (developer: disabled in my newrelic.yml:development environment), the TuneUp bar started showing up. I guess RPM’s route altering code was messing up TuneUp’s
|