<p>I have a basic model in which i have specified some of the fields to validate the presence of. in the create action in the controller i do the standard:</p>

<pre><code>@obj = SomeObject.new(params[:some_obj])

if @obj.save
  flash[:notice] = "ok"
  redirect...
else
  flash[:error] = @obj.errors.full_messages.collect { |msg| msg + "&lt;br/&gt;" }
  redirect to new form
end
</code></pre>

<p>however when i redirect to the new form, the errors show, but the fields are empty. is there a way to repopulate the fields with the entered values so the errors can be corrected easily?</p>

You
```
render :action => :new
```
rather than redirecting.