Keep data on the field after submit a form with error

After validation, I got error and return back to :action => :new. Some
field on form already filled, so I want to keep them filled after error
message too. How it can be done in rubyonrails4?