Hi, I have two models, frontend and user with respective controllers and views.
From a form_for
in frontend view I'm calling a create method in user controller and I save new user in database. All works.
The problem comes with validation.
If something is wrong with the model validators I need error messages to be displayed on frontend view... so, I need that if there are errors, when I redirect_to
frontend (since render seems not possible for different controller) is possible to display errors here.
I haven't found solutions for this.
Thanks!