I am developing a Rails application, but have encountered a problem accessing it using Internet Explorer. Firefox and Safari render pages in order. In any case, when using Internet Explorer, on some pages it tries to load the page, rather than display it. I have no idea what could happen.
Here is the html header of my .html.erb application:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="otzee_header_scripts">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>test site</title>
<meta name="robots" content="index, follow" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<meta name="author" content="NZN - No Zebra Network" />
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
<%= stylesheet_link_tag "default.css" %>
<%= stylesheet_link_tag "#{site_theme}/default", :id => 'theme_change_css' %>
<%= stylesheet_link_tag "#{site_theme}/toyart.css", :id => 'theme_change_bg_css' %>
<%= javascript_include_tag 'jquery' %>
<%= javascript_include_tag 'jquery-ui' %>
<%= javascript_include_tag 'jrails' %>
<%= javascript_include_tag 'games' %>
<%= javascript_include_tag 'users' %>
<%= javascript_include_tag 'application' %>
<%= stylesheet_link_tag 'application' %>
<%= stylesheet_link_tag 'acts_as_taggable_stylesheet' %>
<%= yield(:head) %>
<script src="http://www.google.com/jsapi"></script>
</head>
But I do not think that this is due to application.html.erb, as some pages are displayed normally, while others are loaded using ie.
Is there any evidence of what might be causing this? or how to solve it?
Thank you in advance
UPDATE
, , mime content-type text/javascript text/html.
.
, - , .
def index
respond_to do |format|
format.js do
if params[:bookmarks] != 0
@games_infos = current_user.games_info_bookmarks params[:page], 8
@bookmarks = 1
else
@games_infos = current_user.games_info_collection params[:page], false, 8
@bookmarks = 0
end
end
format.html do
@invites = current_user.friends_pending
@whats_new = WhatsNew.find_user_network_updates @me, 1, 13
@games_infos = @me.games_info_bookmarks params[:page], 8
@bookmarks = @games_infos.size
@games_infos = @me.games_info_collection(params[:page], false, 8) unless @bookmarks > 0
@friends = @me.friends_on_off
@high_scores = @me.high_scores
end
end
end
Obs: firebug Content-Type text/html; charset = utf-8 firefox, Fiddler - Text-Type text/javascript; charset = utf-8 Internet Explorer.