Hi All!
After another head-banging session :'( , I discovered (actually others
did in an obscure post on StackOverflow) a bug that produces insidious
errors in rare cases in Rails and Hobo.
The manifestation of this bug only appeared on Google Maps on Mac Safari
(not Wine or Windows Safari nor FF nor IE nor Opera nor Chrome). The
bug caused the entire google map (including its controls) to zoom to
very close up instead of just zooming in on a polygon. All the other
browsers performed as expected.
The underlying cause was duplicate events being fired from UJS controls
where :remote=>true is set. It comes from the fact that there are two
copies of application.js being loaded, both of which intercept the
button/link click and fire off events to the controller.
I had noticed this in my logs during other debugging but it was only an
annoyance that slowed up responses due to performing certain operations
twice so I made a note to go back after all the other development was
done, but ... :-[ .
The fix is incredibly simple. :-) Go to the public/assets directory
and delete or rename the application.js file. I renamed it to
application.js.zzz. Restart the server and watch the new snappiness of
your app.
Hope this saves someone a bit of debugging time.
Don Ziesig
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.