How do you show the following errors that fail Rails validation using AJAX?

I have the following code in controller
flash[:notice] = 'Please correct the errors below and try again.'
format.html { render :action => :new }
format.js
end
Added to view
:remote => true
And then in create.js.erb I check the flash, but how do I show Rails errors that are shown when not using AJAX? or do I have to write validations from scratch here?
<% if flash.present? %>
<% end %>