On 2 March 2013 17:23, Dave Castellano wrote:
> Thank you everyone for the previous validation help. I have one last
> question... Can anyone tell me if there is a standard way to deal with a
> failed
> validation and loss of the data that was partially completed on the
> form. I currently use a
further this url will help with any other questions
http://guides.rubyonrails.org/layouts_and_rendering.html
On Sat, Mar 2, 2013 at 12:40 PM, Jodi Showers wrote:
> render the view - @question will be given to the view for rendering the
> previous values
>
> render :new if @question.errors.any?
render the view - @question will be given to the view for rendering the
previous values
render :new if @question.errors.any?
On Sat, Mar 2, 2013 at 12:23 PM, Dave Castellano wrote:
> Thank you everyone for the previous validation help. I have one last
> question... Can anyone tell me if there
Thank you everyone for the previous validation help. I have one last
question... Can anyone tell me if there is a standard way to deal with a
failed
validation and loss of the data that was partially completed on the
form. I currently use a redirect back to the same action and lose all
the data (o
4 matches
Mail list logo