Skip to content

Commit dde766d

Browse files
enderahmetyurtflavorjones
authored andcommitted
Fix naming regarding Rails form naming
1 parent db80e88 commit dde766d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<%%= form.label :<%= attribute.column_name %> %>
2929
<% if attribute.field_type == :text_area -%>
3030
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, rows: 4, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>
31-
<% elsif attribute.field_type == :check_box -%>
31+
<% elsif attribute.field_type == :checkbox -%>
3232
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block mt-2 h-5 w-5" %>
3333
<% else -%>
3434
<%%= form.<%= attribute.field_type %> :<%= attribute.column_name %>, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %>

0 commit comments

Comments
 (0)