Hi mike.

If only the admin user creates records...

1) how do you assign a record to an existing user?

2) Whats about changing the creator_id on the records and use
the :creator=>true function?

eddie


On 9 jul, 00:23, mkim <[email protected]> wrote:
> Hi,
>
> I've read some posts.  What's the best practice to get just the
> current_users records from a model?  I have to validate scheduling so
> there are no double bookings.  I have some validations that use a
> couple of named scopes.  A named scope wants an argument for
> current_user for it's lamda block.
>
> I wish I could use :creator => true, but all the records are created
> by admin.  How and where do I get the current_user?  What's the hobo
> or rails way?
>
> Mike

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