Super..
I managed to get it working with this code in the index.dryml
<index-page>
<content-body:>
<table-plus fields="this, administrator?"/>
</content-body:>
</index-page>
On 3 Feb., 19:15, Bryan Larsen <[email protected]> wrote:
> ticket
> created:https://hobo.lighthouseapp.com/projects/8324-hobo/tickets/621-harden-...
>
>
>
> kevinpfromnm wrote:
> > IMHO I'd say yes, either that or a better error.
>
> > I've run into similar things modifying controller code for an index
> > page and it's not clear at first what just broke other than the magic
> > hobo index method does something yours doesn't.
>
> > On Feb 3, 9:53 am, 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.