Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error messages #7

Open
JeyKJey opened this issue Oct 26, 2012 · 1 comment
Open

error messages #7

JeyKJey opened this issue Oct 26, 2012 · 1 comment

Comments

@JeyKJey
Copy link

JeyKJey commented Oct 26, 2012

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

@kaipei
Copy link

kaipei commented Feb 11, 2014

I have the same question. Any one could provide any answer? Very appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants