Okay, first of all thx, it works..! second, i should have mentioned that i was working on the user model, and there i can't get i to work. The view generation is not affected by the user.hints.rb file i've created (but i suspect it's because the user model is not a standard hobo model!?)
Where in the page dryml is the pagination declared. Can't seem to find it in the rapid pages.dryml file. On 3 Feb., 17:53, Matt Jones <[email protected]> wrote: > On Feb 3, 2010, at 11:37 AM, Mikkel WF wrote: > > > How can i turn pagination off in an hobo_index..? > > > When i apply the "hobo_index :paginate => false" to my index > > controller, i get an "undefined method `total_pages' for #<Array: > > 0x106511fb0>" error, like the view still expects a pagination to > > occur... > > The autogenerated page doesn't know that you've turned off pagination > in the controller. You can either write your own index view, or just > add a view hint: > > paginate? false > > to the file in app/viewhints/ corresponding to your model. > > @Tom, Bryan: would it make sense to harden the page-nav tag against > this kind of thing, to make the automatic index-page tag more useful? > Either that, or we should be checking the viewhint in > find_or_paginate, but it seems silly to have to switch one option off > in two spots. > > --Matt Jones -- 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.
