Generalised _error_messages.html.erb to apply to object; now whatever object we're rendering the error messages for can be passed in when rendering the error message partial. Updated all references to layouts/listings_errors to layouts/error_messages; removed listings_errors; updated all usages of error_messages to pass the correct object.