Use request.scheme and request.host_with_port instead hardcoded localhost
This commit is contained in:
parent
e677a575d0
commit
b34154ef1d
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user