Reputation: 1683
Using Rails 4 and Devise. How could I, in devise/sessions/new.html.erb, display the full current URL, e.g. http://(request.subdomain).example.com, in the view?
For example in new.html.erb:
<p>Please bookmark http://yoursubdomain.example.com</p>
Upvotes: 1
Views: 822
Reputation: 520
<p>Please bookmark <%= "http://" + request.subdomain + ".example.com" %></p>
Hope this helps.
Upvotes: 0
Reputation: 2451
Try like that:-
request.original_url
In view as:-
<%= request.original_url %>
Upvotes: 3