I have RoR app, and I want to change some lines of my code to be more elegant.
foo = params[:customer][:language].nil? or params[:customer][:language].empty? ? 'es' : params[:customer][:language]
I try with
foo = params[:customer][:language] || 'es'
But it's not the same exactly.
Thanks in advance.
blank?method?