Weird stylesheet_link_tag issue after moving servers

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

Before the move it was generating the right code:

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

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

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

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 [email protected] 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

Before the move it was generating the right code:

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
[email protected]
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

I might be wrong, but it may be worth checking production.rb for
asset_host
variable

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 H. [email protected] wrote: I might be wrong, but it may be
worth checking production.rb for asset_host variable

On 3/19/06, Frank < [email protected]> 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

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

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 [email protected] 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

Before the move it was generating the right code:

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
[email protected]
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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails


Rails mailing list
[email protected]
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