Use request.scheme and request.host_with_port instead hardcoded localhost

This commit is contained in:
Igor Zubkov 2011-12-23 16:16:45 +02:00
parent e677a575d0
commit b34154ef1d
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => 'http://localhost/projects/demo/wiki/Wiki' %></p>
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => "#{request.scheme}://#{request.host_with_port}/projects/demo/wiki/Wiki" %></p>

View File

@ -1 +1 @@
<p><%= form.text_field :landing_page, :size => 60, :placeholder => 'http://localhost/projects/demo/wiki/Wiki' %></p>
<p><%= form.text_field :landing_page, :size => 60, :placeholder => "#{request.scheme}://#{request.host_with_port}/projects/demo/wiki/Wiki" %></p>

View File

@ -1 +1 @@
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => 'http://localhost/projects/demo/wiki/Wiki' %></p>
<p><%= form.text_field :landing_page, :style => 'width: 90%', :placeholder => "#{request.scheme}://#{request.host_with_port}/projects/demo/wiki/Wiki" %></p>