```coffeescript
App.UsersNewController = Em.Controller.extend
  needs: ["application"]
  validRoles: ["admin", "member"]
```

Save action for new user
user
```coffeescript
App.UsersNewController = Em.Controller.extend
  needs: ["application"]
  validRoles: ["member", "admin"]

  actions:
    save: ->
      userAttributes = @getProperties(["firstName", "lastName", "role", "password", "email"])

      user = @store.createRecord("user", userAttributes)
      console.log userAttributes
      successCallback = =>
        @transitionToRoute("users.index")
      errorCallback = => console.log("error saving user")
      user.save().then(successCallback, errorCallback)
```
assistant