You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey once more!
I have found as well some error-variables in your index.html.erb. I need to have my error messages(in validation) associated to the 'error' key in your json response
Could you please give me a hint how to use different error-messages and how to build them into a code?
I have tried this thing in a controller but it didnt work.
render json: {error: @upload.errors.full_messages}, status: :unprocessable_entity
render json: {error: @upload.errors.full_messages}, status: 422
I guess I need to change a javascript in index.html.erb
Thanks
The text was updated successfully, but these errors were encountered:
Hey once more!
I have found as well some error-variables in your index.html.erb. I need to have my error messages(in validation) associated to the 'error' key in your json response
Could you please give me a hint how to use different error-messages and how to build them into a code?
I have tried this thing in a controller but it didnt work.
render json: {error: @upload.errors.full_messages}, status: :unprocessable_entity
render json: {error: @upload.errors.full_messages}, status: 422
I guess I need to change a javascript in index.html.erb
Thanks
The text was updated successfully, but these errors were encountered: