Skip to content

Commit 2ca96d5

Browse files
committed
Let's not set :title inside a partial
1 parent e41e30e commit 2ca96d5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/messages/_message.html.erb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<% content_for :title, message.subject %>
2-
31
<div class="message" id="<%= dom_id message %>">
42
<ul class="headers">
53
<li>From: <%= message.from %></li>

app/views/messages/show.html.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<% content_for :title, @message.subject %>
2+
13
<p style="color: green"><%= notice %></p>
24

35
<%= render @message %>

0 commit comments

Comments
 (0)