Hi guys!
I am using will_paginate in my rails application.
I want to merge these 2 lines in one:

    @cat_products1 = Product.find(:all, :conditions => {:category_id
=> params[:id]})
    @cat_products2 = Product.paginate(:per_page => 5, :page => params
[:page],
                                 :conditions => ['title like ?' , "%#
{params[:search]}%"],
                                 :order => 'title')

I want to paginate using the condition category_id=>params[:id]

Any sollutions???
Thank u!

Kostas L.
--~--~---------~--~----~------------~-------~--~----~
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