File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
lib/generators/tailwindcss/scaffold/templates Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11<%%= form_with(model: <%= model_resource_name %>, class: "contents") do |form| %>
22 <%% if <%= singular_table_name %>.errors.any? %>
3- <div id="error_explanation" class="px-3 py-2 mt-3 font-medium text-red-500 rounded-md bg-red-50 ">
3+ <div id="error_explanation" class="bg-red-50 text-red-500 px-3 py-2 font-medium rounded-md mt-3 ">
44 <h2><%%= pluralize(<%= singular_table_name %>.errors.count, "error") %> prohibited this <%= singular_table_name %> from being saved:</h2>
55
6- <ul class="ml-6 list-disc">
6+ <ul class="list-disc ml-6 ">
77 <%% <%= singular_table_name %>.errors.each do |error| %>
88 <li><%%= error.full_message %></li>
99 <%% end %>
Original file line number Diff line number Diff line change 11<div id="<%%= dom_id <%= singular_name %> %>">
22<% attributes.reject(&:password_digest?).each do |attribute| -%>
33 <p class="my-5">
4- <strong class="block mb-1 font-medium"><%= attribute.human_name %>:</strong>
4+ <strong class="block font-medium mb-1 "><%= attribute.human_name %>:</strong>
55<% if attribute.attachment? -%>
66 <%%= link_to <%= singular_name %>.<%= attribute.column_name %>.filename, <%= singular_name %>.<%= attribute.column_name %> if <%= singular_name %>.<%= attribute.column_name %>.attached? %>
77<% elsif attribute.attachments? -%>
You can’t perform that action at this time.
0 commit comments