also available as a general note, you can add :creator => true to your
user association.  handles automatically assigning the current user to
the user association.

On Jun 10, 11:31 am, Steve Pallen <[email protected]> wrote:
> Thanks, I got this resolved.
>
> Adding the new_record? check in my view_permitted method did the trick.
>
> Thanks,
> Steve
>
> On 2010-06-10, at 9:45 AM, Chris Apolzon wrote:
>
> Ive run into permission problems when forgetting to login - make sure you 
> aren't a guest
>
> Sent from my EVO
>
>
>
> > On Jun 9, 2010 9:58 PM, "Matt Jones" <[email protected]> wrote:
>
> > Are you getting this as an admin or a regular user? I typically end up 
> > adding new_record? to view_permitted to avoid problems where the record 
> > isn't set up when the permission is called, to avoid this kind of thing...
>
> > So you'd have:
>
> > def view_permitted?(field)
> >  new_record? || acting_user.administrator? || acting_user.id == user_id
> > end
>
> > --Matt Jones
>
> > On Jun 9, 2010, at 7:09 PM, Steve Pallen wrote:
>
> > > How do I trouble shoot this permission problem?...
>
> --
> 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 
> athttp://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.

Reply via email to