![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi All, I have a situation where I have a task model, tag model and a link table task_tags. In a particular view, I need to display a list of task that have a certain tags - For this, I'd need to run a query and get the results that would need to be paginated - so I cannot really call paginate on the Task model itself. 1. What is a good way to deal with this situation? 2. In general, how can I use will_paginate plugin on arbitrary sql queries. |
ffset =>|
-- Regards, Kashyap --~--~---------~--~----~------------~-------~--~----~ |
#3
| |||
| |||
|
|
Hi All, I have a situation where I have a task model, tag model and a link table task_tags. In a particular view, I need to display a list of task that have a certain tags - For this, I'd need to run a query and get the results that would need to be paginated - so I cannot really call paginate on the Task model itself. 1. What is a good way to deal with this situation? 2. In general, how can I use will_paginate plugin on arbitrary sql queries. -- Regards, Kashyap |
![]() |
| Thread Tools | |
| Display Modes | |
| |