app/views/layouts/scrapbook/application.html.erb in scrapbook-0.2.1 vs app/views/layouts/scrapbook/application.html.erb in scrapbook-0.2.2
- old
+ new
@@ -1,8 +1,8 @@
<!DOCTYPE html>
<html>
<head>
- <title><%= local_assigns[:scrapbook].name || 'Scrapbook' %>: <%= content_for?(:title) ? yield(:title) : local_assigns[:pathname].basename %></title>
+ <title><%= local_assigns[:scrapbook]&.name || 'Scrapbook' %>: <%= content_for?(:title) ? yield(:title) : local_assigns[:pathname]&.basename %></title>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "scrapbook/application", media: "all", "data-turbo-track": "reload" %>
</head>