Change 406 to 422
This commit is contained in:
parent
d2cdc20e2b
commit
52691920f7
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class StatusMessagesController < ApplicationController
|
||||||
photos.update_all(:status_message_id => nil)
|
photos.update_all(:status_message_id => nil)
|
||||||
end
|
end
|
||||||
respond_to do |format|
|
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}
|
format.html {redirect_to :back}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue