Can you just use <%= render 'edit_card', card: @card %> instead of writing this out again?