resource_helper.rb
def show_checkbox resources
resources.each do |resource|
resource.name
end.join(' ').html_safe
end
view
<%= show_checkbox resource %>
This code will output # ,I am sure the value inside is correct. But not sure why it output #
resource? More context maybe?