You're just changing the `form_for`, right? So you can keep `check_box_tag` and `<% end %>` outside the `if`, since it's the same for both branches.