We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c922fd5 commit 9883c08Copy full SHA for 9883c08
app/views/exercises/show.html.erb
@@ -12,14 +12,14 @@
12
<dt><%= 'Visibility' %>:</dt>
13
<dd><%= @exercise.public ? 'public' : 'private' %></dd>
14
<dt><%= 'Created by' %>:</dt>
15
- <% if defined? @exercise.user %>
+ <% if @exercise.user %>
16
<% if @exercise.user.first_name.nil?%>
17
<dd><%= "User#{@exercise.user.id}"%></dd>
18
<% else %>
19
- <dd><%= @exercise.user.name %></dd>
+ <dd><%= @exercise.user.name %></dd>
20
<% end %>
21
22
- <%= 'User undefined' %>
+ <dd><%= 'User undefined' %></dd>
23
24
<dt><%= 'Created at' %>:</dt>
25
<dd><%= @exercise.created_at %></dd>
0 commit comments