Re: [Rails] Persistance of good data on validation fail

2013-03-02 Thread Colin Law
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

Re: [Rails] Persistance of good data on validation fail

2013-03-02 Thread Jodi Showers
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?

Re: [Rails] Persistance of good data on validation fail

2013-03-02 Thread Jodi Showers
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

[Rails] Persistance of good data on validation fail

2013-03-02 Thread Dave Castellano
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