kevinpfromnm,

perfect!! I got it working now, thanks.

btw, for those newbie like me, if u followed the example code,
belongs_to :onwer, :class_name => "User" ........, u need to
add :foreign_key => "user_id" to resolve
the current_user.clients bit.

also, to retain search function for current_user, change the scope to
current_user.clients.apply_scopes(....)

hope this will help.

--
  munkean

On 8月13日, 上午1時19分, kevinpfromnm <[email protected]> wrote:
> Huh, normally it doesn't show the row at all.  Either way, you'll want
> to adjust the controller to load only the appropriate items (otherwise
> pagination and item count are off).
>
> def index
>   if current_user.administrator?
>     hobo_index # standard index for administrators
>   else
>     hobo_index current_user.clients # limit to current_user's clients
> assuming user has a has_many association for clients
>   end
> end
>

-- 
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