Following is my controller code. How do i set the total_entries count
in the paginated @chapters array?

def index
    chaps = []

    moduls = Modul.filter(params[:search], 10, params[:page],
get_conditions_hash, sort_order('created_at'))
    moduls.each { |modul| chaps << modul.modulable }

    @chapters = chaps.paginate :page => params[:page], :per_page => 10
end


Thanks,
Pratik
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to