Include extensions .json.erb when rendering a template at the end of FoldersController#update and #create methods.

It seems rails sometimes got confused and tried to render an html template if these extensions were not specified.