- # if we get here, all is fine, otherwise something will catch below.
- render :nothing => true
+ # if we get here, all is fine, otherwise something will catch below.
+ render :nothing => true
+ else
+ render :nothing => true, :status => :bad_request
+ end