checking attributes fix

I've got ' undefined method `each' for "":String ' after clicked 'reset' link
Error existed for urls like "http://localhost:3000/users?user=" where params[:user] is empty string.
Using Rails 4.1.0