Partials Not Rendering in Safari Only - Rails - ruby-on-rails

I use "inspect" on Safari to see why... and the HTML is all there, but it just isn't visible. It is the weirdest thing to me. Works flawlessly in Chrome. I haven't encountered this before, so I am at a loss on how to debug this. Could anybody point me in a direction so I can try to debug? HTML is all there, but looks blank inside the browser. I can provide code if it helps?

Related

IE renders wrong glyphicons

I am building a Rails app that uses Bootstrap and its components. On one page I have a datepicker which used glyphicon-chevron-left and glyphicon-chevron-right.
However, when the site is oped on IE, surprisingly, there is a bug. Occasionally, IE renders wrong icons. The bug is really random and sometimes I struggle to reproduce it. You can see the error and the code in the picture below:
Wrong glyphicon
Has any of you encountered that? I've tried googling the problem but haven't found a soution. What could be causing that issue?
Any help will be highly appreciated!

Chrome fails to decompress response

I've an issue where chrome renders the gzip response instead of decompressing it and render the page correctly. If I refresh the page it renders correctly.
I have only been able to reproduce this in chrome. Firefox, IE etc works fine.
I throught it was because of the null in the start of the headers, but if that was the case, then I would expect Firefox and other browsers to fail too.
It's fairly easy to reproduce on production. Simple refresh the page a little fast at this website
I hope someone knows how to resolve this issue.
We found the problem. If anyone else is interested. This error was caused by Kaspersky antivirus.

Some parts of the Rails page doesn't render randomnly?

Using Rails 3.2.11 and finding this weird issue.
When the page is rendered, header partial is displayed and even the footer is also displayed in the browser. And the form/content doesn't get rendered and shown blank.
If the page is refreshed then the whole page is displayed.
The weird thing is that it doesn't happen always. It happens rarely which I'm finding kinda lost to debug and its even hard to reproduce.
What might be wrong of how can I debug this weirdness?
Any help would be much appreciated!!!

Google Analytics MIME type issue in Chrome using Rails 3

I'm adding GA to a Rails 3 app, which would normally be extremely simple, of course. I've added the GA JS snippet, which is rendering just fine. Everything works perfectly in Safari. In Chrome, however, it's giving me a console error: Resource interpreted as Script but transferred with MIME type text/html: "about:blank", pointing to the JS line that loads the ga.js file: s.parentNode.insertBefore(ga, s). Some things I've investigated:
I created a plan HTML page with the JS snippet, and it loads outside Rails in Chrome with no error.
The same HTML page, when put in /public, gives the error above.
The same HTML page, loaded in Safari from /public, doesn't give any error according to Firebug.
I tried the GA Debug extension in Chrome, but it remains silent, because ga.js isn't getting loaded.
Looking at the developer console in Chrome, I see a request for "http://www.google-analytics.com/ga.js" that seems to stay in "pending" state, and a redirect to "about:blank" seemingly initiated by http://www.google-analytics.com/ga.js, which makes very little sense.
So this seems to be related to Rails (since the snippet works in the HTML outside Rails), and doesn't affect Safari, but other than that I'm stumped. Hopefully I've just been staring at it wrong, and someone else will point out the obvious to me...? Anyone come across this before? Any ideas will be very much appreciated.
Came across this issue myself. "Disconnect" disabled share buttons on my site (g+, twitter and fb). Had to remove it to view the site properly.

Rails, my stylesheet disappears magically?

Ok I just started a rails project...when i initially load the page it's styled as it's supposed to be. Without changing any code when I refresh the stylesheet disappears. I figured maybe it was a html/css error, but then if i close my browser and reopen it the page shows up fine again. So it's not that. I'm in dev mode so I don't think it's a cache issue. It happens in both firefox and chromium.
Just give Mongrel or Thin a try

Resources