File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
railties/lib/rails/generators/rails/app/templates Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<%%= yield :head %>
12
12
13
- <!-- link rel="manifest" href="/manifest.json" -->
13
+ <%%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
14
+ <%%#= tag.link rel: "manifest", href: pwa_manifest_path %>
15
+
14
16
<link rel="icon" href="/icon.png" type="image/png">
15
17
<link rel="icon" href="/icon.svg" type="image/svg+xml">
16
18
<link rel="apple-touch-icon" href="/icon.png">
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ Rails.application.routes.draw do
7
7
8
8
<%- unless options.api? -%>
9
9
# Render dynamic PWA files from app/views/pwa/* (remember to link manifest in application.html.erb)
10
- # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
11
10
# get "manifest" => "rails/pwa#manifest", as: :pwa_manifest
11
+ # get "service-worker" => "rails/pwa#service_worker", as: :pwa_service_worker
12
12
13
13
<%- end -%>
14
14
# Defines the root path route ("/")
You can’t perform that action at this time.
0 commit comments