Add coffee script to hide view_by_form submit button and submit when radio is clicked. Remove unneeded if else statement just check for condition.