Skip to content

Using deprecated includes for check_box and check_box_tag #450

Description

@jaywhy

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
end

Expected 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions