I currently programming a delicious clone to understand ruby on rails.
The problem I’ve got is that I prefill a form (form without models)
without a database connection and then save it into the database.
For validation i am using the validation helper methods. My Problem is
that i don’t know how I get the error hash from the helper method
validates… etc. because I don’t have a fully database connection (but
if the controller tries to save, the helper methods will evoke an
errors.add - right?). When I update the records (form with database),
everything is find (cause I have a real database connection). So my
question is, how i can read out the errors in my controller or view?
error_messages_for… in the view will evoke an error that the object is
Or do I have to programm my own validation actions as protected?
Greets -Jens (sorry for my bad english)