I am new to Rails and am running into a problem with pagination.
Consider model classes Employee and Department:
class Employee < ActiveRecord::Base
class Department < ActiveRecord::Base
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
department_name = “My Department”
@employees = # … ??
@employee_pages = # …??