We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f30b4ad commit 51c9d59Copy full SHA for 51c9d59
lib/generators/tailwindcss/scaffold/templates/partial.html.erb.tt
@@ -8,8 +8,8 @@
8
<%% <%= singular_name %>.<%= attribute.column_name %>.each do |<%= attribute.singular_name %>| %>
9
<div><%%= link_to <%= attribute.singular_name %>.filename, <%= attribute.singular_name %> %></div>
10
<%% end %>
11
-<% elsif attribute.type == :boolean %>
12
- <%%= <%= singular_name %>.<%= attribute.column_name %> ? "Yes" : "No" %>
+<% elsif attribute.type == :boolean -%>
+ <%%= <%= singular_name %>.<%= attribute.column_name %>? ? "Yes" : "No" %>
13
<% else -%>
14
<%%= <%= singular_name %>.<%= attribute.column_name %> %>
15
<% end -%>
0 commit comments