Ugly code

I have a Product related to sizes by way of has_and_belongs_to_many.
Currently in my product form partial, I have this really ugly (although
functional) code. Note the hanging “>” that closes the “”.

Sizes
<% for size in @sizes %> checked<%end%> > <%= size.name %> <% end %>

Is there a method that will let me do this and have nicer looking code?
I’ve had a hard time finding it if there is.

Is there a method that will let me do this and have nicer looking code?
I’ve had a hard time finding it if there is.

check_box?
http://api.rubyonrails.com/classes/ActionView/Helpers/FormHelper.html#M000394