EDIT: Don't do this (see comments) but if you must here is how:
I ended up using a call to
@car.invalid?
inside of a loop to remove the invalid entries:
params[:car].each do | key, array|
if @car.errors.invalid?(key)
@car[key.to_sym] = ''
end
end
render :action=> 'new'
Note the use of the render here vs. redirect. Getting error messages to persist from the rails model validation across a redirect appears tricky, see: Rails validation over redirect
I still feel like there should be a helper method for this or a better way.