You can use where
like following to get your desired result.
In your ProductsController
:
@categs1 = Category.where({ :id => [16,21,29,30] })
or if you'd like to stick to find
then use this:
@categs1 = Category.find(:all, :conditions => { :id => [16,21,29,30] })