On 08/03/2012 12:56 AM, Michael Pedersen wrote:
> On Thu, Aug 2, 2012 at 3:58 PM, alex bodnaru <
alexbod...@gmail.com
> <mailto:
alexbod...@gmail.com>> wrote:
>
>
> hello michael,
>
> On 08/02/2012 06:27 PM, Michael Pedersen wrote:
> > I don't believe we have such a facility. While it might be possible to do, I'm
> > not even sure that's desirable. What are you trying to accomplish? More
> > importantly, why? We may need to do something for this.
> >
> all my controllers inherit basecontroller.
> i'd like most @validate error_handlers to behave the same. hence i'd put this
> error_handler in base.
> how would you do it?
>
>
> I wouldn't. @validate is on a per method basis because each method is expecting
> something different. I have no idea of any use case where a number of methods
> are expecting everything to be the same. As a result, I can't conceive of a time
> that I would even *try* to do what you're describing, never mind actually doing it.
raise an exception. this would better be done from basecontroller.
since this is a quite routine job, won't this be something to do in only one place?