Thanks Tiago,

Yes, gem list reports:
will_paginate (2.3.15)

cheers Dave


On Sep 20, 4:31 pm, Tiago Franco <[email protected]> wrote:
> Hi Dave,
>
> Please confirm that the gem will_paginate is installed.
>
> Thanks,
>    TF
>
> On 09/20/2010 03:58 AM, Dave Porter wrote:
>
>
>
>
>
>
>
> > I am creating a new app which currently just has a company and tasks -
> > tasks is belongs_to company and company has_many tasks.
>
> > I'm reading the 'Controllers and Routing' docs and it has an example
> > of 'Writing an action from scratch'.
> > With this code:
>
> > def index
> >   �...@adverts = Advert.published.all
> > end
>
> > Mine is the same but for tasks
>
> > def index
> >     �...@tasks = Task.status.all
> > end
>
> > But I get an error:
> > undefined method `total_pages' for #<Array:0x639c6a8>
>
> > Just can't see why ?
> > Any thoughts appreciated.
> > regards, Dave

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to