On Thu, Jul 28, 2011 at 3:59 PM, Barney <bsper...@gmail.com> wrote: > How else would I check that hash?
Besides the previously mentioned debugger, you can add logging statements to your code to provide more information. > But, could you tell me what form (type, value) is the return from > that empty text box? It's the web -- all request parameters are strings; if no value was set in the client then it's an empty string. But based on the code above -- ------ @skill_search2 = String.new # blech - extraneous @skill_search2=:skill2.to_s # ditto, also meaningless :-) if @skill_search2.empty? ------ what you want is just if params['skill2'].empty? HTH, -- Hassan Schroeder ------------------------ hassan.schroe...@gmail.com http://about.me/hassanschroeder twitter: @hassan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.