:warning:  You are allowing save an empty category.
You would have to stop this via js.
```js
// cancel Ajax call if input field empty
  $("#new_category").on('ajax:before', function(){
    if ($("#category_name").val() == '') {
      return false;
    }
  }); 
```
you have to do the same for Val