Ah, thanks for the clarification there.

Craig

On Nov 15, 2008, at 10:22 AM, Tom Locke wrote:

>
>> For some reason i thought it should work like an autocomplete block
>> does, guess i was wrong.
>
> You can give web_method a block, in which case it calls find_instance
> and performs a permission check. Probably you didn't define the
> permission method
>
> e.g. for "web_method :foo" the model needs foo_callable_by?(user)
>
> The idea is that the controller action should call @this.foo, passing
> any params as required.
>
> Tom
>
>
> >


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