Everyone,
I must really be missing something here. Best I can tell, the scope placed
on the custom action after hobo_index is not carrying through to the
table-plus object, leaving the table-plus to choke. Is there something
special about the way the standard view is coded to cooperate with the scope
placed on "hobo_index"?
def history
hobo_index (Thing.owner_is(current_user))
end
Maybe that scope ^ does not carry through to the replaced collection tag:
<index-page>
<collection: replace>
<div>
<table-plus fields="this,other_var"/>
</div>
</collection>
</index-page>
Can I force the table-plus to act on the right scope? I've done a bunch of
searching, and found a lot of different syntax that doesn't make sense to
me, that all see to cause errors:
<table-plus:things fields="this,other_var"/>
<table-plus with="&@things" fields="this,other_var"/>
What do these mean?
Thanks,
Mike
----
Mike Karp
(m) 650.793.0695
(e) [email protected]
On Sun, Oct 2, 2011 at 12:02 PM, kevinpfromnm <[email protected]>wrote:
> You want to modify your index finder (in the controller) to only grab the
> right entries anyway. Otherwise pagination is broken.
>
> def index
> if current_user.administrator?
> hobo_index
> elsif
> hobo_index acting_user.things
> end
> end
>
> I can't really speak to the other 2 conditions though but that might at
> least point you in the right direction.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/NQF3qosKt3EJ.
> 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.
>
--
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.