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
–
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:
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs