spree-user
[Prev] Thread [Next] | [Prev] Date [Next]
[spree-user] Re: Returning 404 when object not found? Paul Callaghan Tue Jun 23 09:00:51 2009
Rails Metal sounds good for a longer term solution. In the meantime, how about this: add a hook (eg called "handle_unrecognised_thing") to the end of load_object in both the taxons and products controller which decides what to do with the not-found object. Both controllers have a load_object method, so no changes are needed elsewhere, and this gives complete flexibility. Paul --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Spree" 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/spree-user?hl=en -~----------~----~----~----~------~----~------~--~---
- [spree-user] Returning 404 when object not found? Paul Callaghan
- [spree-user] Re: Returning 404 when object not found? Sean Schofield
- [spree-user] Re: Returning 404 when object not found? Paul Callaghan
- [spree-user] Re: Returning 404 when object not found? Sean Schofield
- [spree-user] Re: Returning 404 when object not found? Stephanie Powell
- [spree-user] Re: Returning 404 when object not found? Paul Callaghan <=
- [spree-user] Re: Returning 404 when object not found? Sean Schofield
- [spree-user] Re: Returning 404 when object not found? Nick Coyne
- [spree-user] Re: Returning 404 when object not found? Brian Quinn