Rails 4 crud with angularjs