addede keyword end in soldier_controller.rb