import Ember from 'ember';

export default Ember.Controller.extend({
  firebase: new Firebase('https://ember-hacker-news.firebaseio.com'),

  actions: {
    signUp: function() {
      this.get('firebase').createUser({
        email: this.get('email'),
        password: this.get('password')
      }, function(error) {
        if (error === null) {
          console.log('User created succesfully.');
          this.transitionTo('login');
        } else {
          console.log('Error creating user:' + error);
        }
      });
   }
  }
});

@@ -167,24 +167,48 @@
 unction() %7B%0A
+      var _this = this;%0A
       this.g
@@ -423,24 +423,25 @@
 ;%0A          
+_
 this.transit
@@ -445,16 +445,21 @@
 sitionTo
+Route
 ('login'

Allow user account creation