Skip to content

Commit f848ff0

Browse files
Fix naming regarding Rails form naming
1 parent db80e88 commit f848ff0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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" %>

lib/tailwindcss/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Tailwindcss
2-
VERSION = "3.0.0.rc1"
2+
VERSION = "3.0.0.rc2"
33
end

0 commit comments

Comments
 (0)