Displaying 4 results from an estimated 4 matches for "employee_pages".
2006 Apr 06
6
pagination question
i''ve figured out how to use the next and previous links with the
paginator class but now i''m trying to figure out how to display all the
page numbers in between. looking through the rails api, i found
paginator.each() but i''m not sure how to use it, or if that''s even what
i am looking for.
also, is there a way to limit the amount of pages like some sites
2006 Apr 18
1
Pagination links with separator
Hi,
I have @result_pages and @results obtained from paginate in an action. I
want to show the pages as
1 | 2 | 3 | 4 >
The fifth page will show:
< 5 | 6 | 7 | 8 >
and so on.
How exactly do I render the paginator to give this effect? I guess I
will have to use pagination_links_each. But being new to Rails, I need
help.
Thanks,
Yash
--
Posted via http://www.ruby-forum.com/.
2006 May 20
3
In a find, can''t you use both :include and :limit ?
I''m trying to do a find that includes a join. It has to be a find
because I''m using the results for a Pagination, so I need to limit my
query to the number of results I want to display per page.
Here''s the type of thing I want to do:
Employee table <-> Skills_Employees table <-> Skills table
Let''s say I want to find all the employees who have
2006 May 06
0
RE: Rails Digest, Vol 20, Issue 156
...tiveRecord::Base
has_many :employees
end
In my controller, I need to get a list of employees working in a given
department, and I need to paginate this list. Any pointers on how to
acheive this?
def list_employees
department_name = "My Department"
@employees = # ... ??
@employee_pages = # ...??
end
Thanks,
Binil
--
Posted via http://www.ruby-forum.com/.
------------------------------
Message: 6
Date: Sat, 6 May 2006 07:38:58 -0600
From: Dave Thomas <dave@pragprog.com>
Subject: Re: [Rails] rake doc:rails fails
To: rails@lists.rubyonrails.org
Message-ID: <650276EF...