On Nov 16, 2007, at 3:14 AM, Chris Farmiloe wrote:
> http://pastie.textmate.org/private/gcet24o9er4milpqemjjq


Thanks, Chris, got it on the list.

I wasn't going to comment on entries, but since this is only a sorta- 
contest (there will be a prize!) I figured it was OK.

I had never thought of pushing it all into the model.  It may be a  
"violation of MVC" to raise controller exceptions from inside models,  
but is that a bad thing?  Raising "Moved" with the new name is  
excellent.

So I guess the MVC purist in me was horrified, and the Resource guy  
in me thought this was super sexy.

Have you used a pattern like this in production yet?

BTW:  Merb already defines MovedPermanently and MovedTemporarily, but  
they don't take the arg for the new URL.  We should add that:
    raise MovedPermanently.new(new_url)

_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to