-
-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
Phlex deprecated the Checkbox and CheckboxTag modules in Phlex 1.2.0. There are now camel-cased: CheckBox and CheckBoxTag.
https://github.com/phlex-ruby/phlex-rails/releases/tag/1.2.0
ERB Input:
<%= form_for do |f| %>
<%= f.check_box %>
<%= check_box_tag %>
<% end %>Output:
class Component < Phlex::HTML
include Phlex::Rails::Helpers::Checkbox
include Phlex::Rails::Helpers::CheckboxTag
include Phlex::Rails::Helpers::FormFor
def view_template
form_for do |f|
plain f.check_box
check_box_tag
end
end
endExpected output:
class Component < Phlex::HTML
include Phlex::Rails::Helpers::CheckBox
include Phlex::Rails::Helpers::CheckBoxTag
include Phlex::Rails::Helpers::FormFor
def view_template
form_for do |f|
plain f.check_box
check_box_tag
end
end
end