You don't need to test for == false, only nil - I suggest ```params[:flat_view].blank?``` because it casts a wider net, but theoretically ```params[:flat_view].nil?``` would be enough too.