Change 406 to 422

This commit is contained in:
Raphael Sofaer 2011-03-17 13:13:47 -07:00
parent d2cdc20e2b
commit 52691920f7

View file

@ -72,7 +72,7 @@ class StatusMessagesController < ApplicationController
photos.update_all(:status_message_id => nil)
end
respond_to do |format|
format.js { render :json =>{:errors => @status_message.errors.full_messages}, :status => 406 }
format.js { render :json =>{:errors => @status_message.errors.full_messages}, :status => 422 }
format.html {redirect_to :back}
end
end