On Martes, 1 de Diciembre de 2009 21:11:53 Chris Drappier escribió:
> Hi guys,
>
> I have an authorized_for_create? method defined on a model, and if it fails
> when trying to render the edit form, it just gives back an error. what's
> the best way to handle this? is there configuration options for redirect on
> authorization failure?  should I just overwrite the do_edit method in each
> controller i need to filter edit permissions on?

What error you get? Are you sure is related to authorized_for_create? That 
method shouldn't be used in edit view, unless it's from a model render as 
subform.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [email protected]

--

You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" 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/activescaffold?hl=en.


Reply via email to