Displaying 4 results from an estimated 4 matches for "customer_pages".
2006 Mar 31
4
Question about pagination
Hi!
I''ve got a list of project on the main page and if one of them is
selected i render a partial using ajax with data of selected project.
How to create links to next/previous project using pagination?
--
Posted via http://www.ruby-forum.com/.
2006 Jul 23
2
how to paginate child records
hi
i know i can do:
@customer_pages, @customers = paginate :customers, :per_page => 8
but these customers have helpdesk calls which are child records. I hoped
i could do something like paginate customers.calls, but dat doesn''t work
what is the best way to get a paginated list of child records?
remco
--
Posted via ht...
2006 Mar 31
7
problem with habtm conditions in pagination
...ment on it. I''d be REALLY appreciative if that''d be the case.
Basically, it''s outlined at this paste: http://rafb.net/paste/results/
kXQSHZ83.html
But I''ll paste it here, too.
The main problem is in the customers/list action. The problem is with
this line:
@customer_pages, @customers = paginate :customers, {:per_page =>
10, :include => ''tags'', :conditions=>''tag_id = 3''}
It''s generating the exception below. Any help would be INCREDIBLY
appreciated. Please b/cc me in on any replies.
Kind Regards,
Julian.
#...
2006 Feb 07
1
Using select with saltedhashlogingenerator
...appear to be the correct syntax, based on the wiki
documentation for using select. but i get an error:
You have a nil object when you didn''t expect it!
You might have expected an instance of Array.
The error occured while evaluating nil.inject
@customers is created via:
def list
@customer_pages, @customers = paginate :customers, :per_page => 10
end
which i believe is the default when creating the scaffold. i tried using
@customers.list in the _edit partial but got the same result.
i did notice that its list method uses paginate rather than find_all
which is what the onlamp articles...