[ruby-on-rails] How to test if parameters exist in rails