Is there a more compact way to write the following code. I would like to get rid of the line that assigns the empty string when flash[:add_run_error] is nil.
unless run.save
run.errors.each do |attr, msg|
flash[:add_run_error] += '<br/>' if flash[:add_run_error]
flash[:add_run_error] = '' unless flash[:add_run_error]
flash[:add_run_error] += "Invalid #{attr}. Follow examples below."
end
end