Testing for nil or empty and then

Not sure how to code this
I’m testing if a param is empty or nil , using - if
params[:category_id].empty?
I’m just at a loss as to how, if it is nil , omit it from the conditions
in
the query ?

Stuart


Did the original on this post come through to the list?

Stuart

On 10/13/06, Dark A. [email protected] wrote:

http://en.wikipedia.org/wiki/Dark_ambient

http://en.wikipedia.org/wiki/Dark_ambient

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs