ruby on line if else code example Example: rails if else assignment one liner @item.property = params[:property] ? true : false