search for: search_sd_ticket_result

Displaying 3 results from an estimated 3 matches for "search_sd_ticket_result".

2008 Apr 26
0
moving pagination code to model
...(:all,:select=>''count(*) as count1'' ) do |sd| end record_count=@search_sd_ticket_count_result[0].count1.to_i # step 3: create a Paginator, the second variable has to be the number of ALL items on all pages @search_sd_ticket_result_pages = Paginator.new(self, record_count, items_per_page, page) # step 4: only find the requested subset of @search_sd_ticket_result @search_sd_ticket_result = ServiceDeskTicket.find_where(:all,:offset=>offset,:limit=>items_per_page ) do |sd|...
2008 May 19
0
changed to will_paginate
..._date) if !@sd_ticket_start_date==nil and !@sd_ticket_end_date==nil end record_count=@search_sd_ticket_count_result[0].count1.to_i # step 3: create a Paginator, the second variable has to be the number of ALL items on all pages @search_sd_ticket_result_pages = Paginator.new(self, record_count, items_per_page, page) # step 4: only find the requested subset of @search_sd_ticket_result # @search_sd_ticket_result = ServiceDeskTicket.find_where(:all,:offset=>offset,:limit=>items_per_page ) do |sd|...
2008 Mar 06
1
pagination for an object array
...? sd.name== @sd_ticket_name end record_count = @search_sd_ticket_count_result[0].count1.to_i # step 3: create a Paginator, the second variable has to be the number of ALL items on all pages @search_sd_ticket_result_pages = Paginator.new(self, record_count, items_per_page, page) # step 4: only find the requested subset of @search_sd_ticket_result @search_sd_ticket_result = ServiceDeskTicket.find_where(:all,:offset=>offset,:limit=>items_per_page ) do |sd|...