Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ruby Programming Language

Rails: Does the option :host work in link_to?


Hi,

I used the following code line in a View file on machine
http://xx.test.com:7777:
<%= link_to "GoToAnotherHost", { :protocol => "http", :host =>
"app1books.test.com:7777", :controller => "admin", :action => "list" } %>
However the result is: the link "GoToAnotherHost" is always pointed to
http://xx.test.com:7777/admin/list rather than
http://app1books.test.com:7777/admin/list. I.e., the :host doesn't take
effect at all!
What's wrong with this? Do you meet the same problem?

Many Thanks!
Shiwei

shiwei zhang wrote:
> Hi,

> I used the following code line in a View file on machine
> http://xx.test.com:7777:

Rails questions are best asked on the Rails mailing list, where you will
get a better, faster, answer; details may be found at www.rubyonrails.com

--
James Britt

"Hackers will be expelled"
  -  The Breakfast Club (1985)

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc