From f84a9c24eb3a71679c60d8abbdad5a80c75ec135 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sat, 30 Aug 2014 15:55:17 +0900 Subject: [PATCH] Fix app_name. --- app/views/devise/registrations/new.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index 0492ed10..3d467a7d 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -9,7 +9,7 @@ <%= devise_error_messages! %> <% if ENV['ON_HEROKU'] && User.count.zero? %>
- <% app_name = request.host[/\A.+/] %> + <% app_name = request.host[/\A[^.]+/] %>

If you are the owner of this application, run the following commands to complete the setup.

<%= content_tag :pre do -%> heroku git:clone <%= app_name %>