Are you sure you need to send the model to the redirect? If what you're trying to do is display an error message in the Teams#show view, I believe you can set 'message' in the Invitations#create controller, as described here:
http://wiki.merbivore.com/development/flash_messages Mark. On Feb 19, 1:09 am, Daniel Vartanov <[email protected]> wrote: > To be specific, let's imagine we have two resources: Teams and > Invitations (join-our-team invitations). > Certainly, form for creating invitations is stored in Teams#show view, > but it sends request to Invitations#create action. > > The problem is: to show model validation errors (or any other action > response) in the Teams#show view. Invitations#create action can only > redirect to Teams#show, but not explicitly render it. So, how to pass > the model @invitation (possibly with validation errors) back to > Teams#show action? > > Or the only way is to use AJAX in this case? > > Thanks in advance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" 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/merb?hl=en -~----------~----~----~----~------~----~------~--~---
