Ah, wonder if that is the problem - I am using 2.3.9 ! Bundler 1.0.0 is listed, sorry but I don't know if I'm using it ! TIA, Dave
On Sep 20, 4:44 pm, Tiago Franco <[email protected]> wrote: > Hi Dave, > > What version of Rails are you using? Using bundler? > > Thanks, > TF > > On 09/20/2010 09:36 AM, Dave Porter wrote: > > > > > > > > > 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.
