Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> generates <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" /> Before the move it was generating the right code: <link href="/stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" /> What could be causing this issue? Why is the extra "/" being added after the move? I have been searching everywhere for an answer but to no avail. Any ideas are appreciated. Thanks Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060318/15c7a11b/attachment.html
Frank
2006-Mar-18 22:32 UTC
[Rails] Weird stylesheet_link_tag issue after moving servers - Extra slash issue
I would also like to point out that this problem of extra slash being added is happening to many function calls including to javascript_include_tag calls: <%= javascript_include_tag "controls" %> which produces <script src="//javascripts/controls.js" type="text/javascript"></script> and link_to_remote calls: which produces <a href="#" onclick="new Ajax.Updater(''loginform'', ''//member/signup'', {asynchronous:true, evalScripts:true, onComplete:function(request){Element.toggle($(''loading'' ))}, onLoading:function(request){Element.toggle($(''loading'' ))}}); return false;">Sign up</a> Can anyone please show me light? I am very confused as to why the server change will trigger something like this. I am using Ruby 1.8.4 and the stable version of rails., Any help is greatly appreciated. Frank Frank <softwareengineer99@yahoo.com> wrote: Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> generates <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" /> Before the move it was generating the right code: <link href="/stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" /> What could be causing this issue? Why is the extra "/" being added after the move? I have been searching everywhere for an answer but to no avail. Any ideas are appreciated. Thanks Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060318/ef6c62fa/attachment.html
Emin Hasanov
2006-Mar-18 22:38 UTC
[Rails] Weird stylesheet_link_tag issue after moving servers - Extra slash issue
I might be wrong, but it may be worth checking production.rb for asset_host variable On 3/19/06, Frank <softwareengineer99@yahoo.com> wrote:> > I would also like to point out that this problem of extra slash being > added is happening to many function calls including to > javascript_include_tag calls: > > <%= javascript_include_tag "controls" %> > > which produces > > <script src="//javascripts/controls.js" type="text/javascript"></script> > > and > > link_to_remote calls: > > which produces > > <a href="#" onclick="new Ajax.Updater(''loginform'', > ''//member/signup'', {asynchronous:true, evalScripts:true, > onComplete:function(request){Element.toggle($(''loading'' ))}, > onLoading:function(request){Element.toggle($(''loading'' ))}}); return > false;">Sign up</a> > > > Can anyone please show me light? I am very confused as to why the server > change will trigger something like this. > > I am using Ruby 1.8.4 and the stable version of rails., > > > Any help is greatly appreciated. > > Frank > > *Frank <softwareengineer99@yahoo.com>* wrote: > > Dear experts, > > I am in the process of switching servers for my application. > > Before the move everything was working properly. > > After the move > > <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> > > generates > > <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" > type="text/css" /> > > Before the move it was generating the right code: > > <link href="/stylesheets/styles.css" media="screen" rel="Stylesheet" > type="text/css" /> > > > What could be causing this issue? Why is the extra "/" being added after > the move? I have been searching everywhere for an answer but to no avail. > Any ideas are appreciated. > > Thanks > Frank > > > Rails Blog: http://railsruby.blogspot.com > MySQL Blog: http://mysqldatabaseadministration.blogspot.com > Linux / Security Blog: > http://frankmash.blogspot.com_______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > > > > Rails Blog: http://railsruby.blogspot.com > MySQL Blog: http://mysqldatabaseadministration.blogspot.com > Linux / Security Blog: http://frankmash.blogspot.com > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060318/ea8b69a4/attachment-0001.html
Frank
2006-Mar-19 04:05 UTC
[Rails] Weird stylesheet_link_tag issue after moving servers - Extra slash issue
Emin, Thank you for your reply. I tried setting the asset_host variable but the problem persists and all AJAX calls are adding an extra slash to the URLs. I haven''t changed anything in the code since migrating to the new server. I appreciate all the assistance very much. Frank Emin Hasanov <emin@hasanov.com> wrote: I might be wrong, but it may be worth checking production.rb for asset_host variable On 3/19/06, Frank < softwareengineer99@yahoo.com> wrote:I would also like to point out that this problem of extra slash being added is happening to many function calls including to javascript_include_tag calls: <%= javascript_include_tag "controls" %> which produces <script src="//javascripts/controls.js" type="text/javascript"></script> and link_to_remote calls: which produces <a href="#" onclick="new Ajax.Updater(''loginform'', ''//member/signup'', {asynchronous:true, evalScripts:true, onComplete:function(request){ Element.toggle($(''loading'' ))}, onLoading:function(request){Element.toggle($(''loading'' ))}}); return false;">Sign up</a> Can anyone please show me light? I am very confused as to why the server change will trigger something like this. I am using Ruby 1.8.4 and the stable version of rails., Any help is greatly appreciated. Frank Frank <softwareengineer99@yahoo.com> wrote: Dear experts, I am in the process of switching servers for my application. Before the move everything was working properly. After the move <%= stylesheet_link_tag ''/stylesheets/styles.css'' %> generates <link href="//stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" /> Before the move it was generating the right code: <link href="/stylesheets/styles.css" media="screen" rel="Stylesheet" type="text/css" /> What could be causing this issue? Why is the extra "/" being added after the move? I have been searching everywhere for an answer but to no avail. Any ideas are appreciated. Thanks Frank Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com_______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails _______________________________________________ Rails mailing list Rails@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails Rails Blog: http://railsruby.blogspot.com MySQL Blog: http://mysqldatabaseadministration.blogspot.com Linux / Security Blog: http://frankmash.blogspot.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060319/b4808408/attachment.html