search for: filter_status_bi

Displaying 1 result from an estimated 1 matches for "filter_status_bi".

Did you mean: filter_status_by
2007 Jun 14
1
rspec will_paginate
Hi Rspec-Users, I''m not sure if I am correctly specing my index since I''m using will_paginate. params[:filter_by] will filter the paginate list accordingly. Tickets Controller: def index @tickets = Ticket.filter_status_by(params[:filter_by],params[:page]) end Ticket Model: def self.filter_status_by(status, page, per_page = 10) conditions = {:status => false} if