Thanks Hassan, the code changed you mentioned above worked!  I
appreciate your taking the time to help me,
          Barney


On Jul 28, 7:25 pm, Hassan Schroeder <[email protected]>
wrote:
> On Thu, Jul 28, 2011 at 3:59 PM, Barney <[email protected]> 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 ------------------------ 
> [email protected]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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to