 $ = jQuery.sub()
-User = App.User
 
 class Index extends App.Controller
   className: 'container signup'

  render: ->
    
    # set password as required
    for item in User.configure_attributes
      if item.name is 'password'
        item.null = false

    @html App.view('signup')(
      form: @formGen( model: User, required: 'signup' ),
    )

  cancel: ->

      
    @params.role_ids = [0]
    @log 'updateAttributes', @params
    user = new App.User
    user.load(@params)

    errors = user.validate()
