On Wed, Dec 31, 2008 at 5:23 PM, fredmsun <[email protected]> wrote:
> My question is how can I pass the error failure from my model to the > view, using a redirect_to? Redirect wipes out things like instance variables because you are making the browser ask for a new page. The flash is there to pass stuff from one action to the next. You can either pass the error messages... or even your whole invalid object along. Example usage in: ri ActionController::Flash -Michael -- Michael C. Libby www.mikelibby.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

