I like passing errors with an 'errors' namespace, and this should probably have an HTTP error code too:

```ruby
format.json { render :json => { errors: @grade.errors.full_messages },: status => 400