In change_status.js.haml
, you have indented the code with two
spaces throughout the document but at one place you used tab
.
Make sure that indentation is uniform in your Haml file. Don't mix-match
, use either two
spaces throughout the document or tab
throughout the document. Choose one and stick to it.
EDIT
Also, escape the results of status
method using escape_javascript
.