I’m stuck right now with a problem concerning error handling. I’ll try
explain the problem in short:
In a controller class I have a method edit:
@some_class = SomeClass.find(params[:id])
The record originates from a database table. What happens if the user
a field that fails validation and I return to my edit page? I get the
that th original value from the database gets reloaded all the time, but
want to see the value the user entered.
I try to create my own list of validation errors by looping through the
errors-object of the model, but I get the impression this one’s also
by the find-statement of my mini-example.
Hopefully somebody understands what I mean and can help me out.
Thanks in advance,