This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<header class="navbar navbar-fixed-top navbar-inverse"> | |
<div class="navbar-inner"> | |
<div class="container"> | |
<%= link_to "Pet App", root_path, id: "logo" %> | |
<nav> | |
<ul class="nav pull-right"> | |
<li><%= link_to "Home", root_path %></li> | |
<li><%= link_to "About", about_path %></li> | |
<li><%= link_to "Contact", contact_path %></li> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: Error running command deploy | |
error: npm exited with code 1 | |
error: npm installation failed, please double check your package.json dependencies | |
error: Nodejitsu Error (500): Internal Server Error | |
help: For help with this error contact Nodejitsu Support: | |
help: webchat: <http://webchat.nodejitsu.com/> | |
help: irc: <irc://chat.freenode.net/#nodejitsu> | |
help: email: <support@nodejitsu.com> | |
help: | |
help: Copy and paste this output to a gist (http://gist.github.com/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
totalFactor:function(){ | |
return this.get('parent.totalFactor') * this.get('quantity'); | |
}.property('parent.isFulfilled', 'quantity'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Session = Ember.Object.extend({isAuthenticated:true}); | |
export default { | |
name: 'session', | |
initialize: function(container, application) { | |
application.register('service:session', Session); | |
application.inject('controller', 'session', 'service:session'); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.onLoad('Ember.Application', function(Application) { | |
Application.initializer({ | |
name: 'firebase', | |
initialize: function(container, application) { | |
application.register('adapter:-firebase', DS.FirebaseAdapter); | |
application.register('serializer:-firebase', DS.FirebaseSerializer); | |
} | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default Ember.Mixin.create({ | |
filteredItemCollection:function(types){ | |
var _this = this; | |
return new Ember.RSVP.Promise(function(resolve, error){ | |
_this.store.find('item').then(function(collection){ | |
var filtered = collection.filter(function(item){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise {_id: 258, _label: undefined, _subscribers: Array[0], constructor: function, _guidKey: "rsvp_1399241644549-"…} | |
__ember1399241644542_meta: Meta | |
_detail: Array[6] | |
0: Class | |
1: Class | |
2: Class | |
3: Class | |
4: Class | |
5: Class | |
length: 6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class {isFulfilled: true, isRejected: false, toString: function, __each: Class, content: (...)…} | |
@each: (...) | |
get @each: function () { | |
set @each: function (value) { | |
__each: Class | |
__ember1399241699509: "ember561" | |
__ember1399241699509_meta: Object | |
__nextSuper: undefined | |
arrangedContent: (...) | |
content: (...) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filterable:function(types){ | |
return this.store.find('item').then(function(collection){ | |
return collection.filter(function(item){ | |
return types.contains(item.get('typeTag')); | |
}); | |
}); | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filterable:function(types){ | |
return this.store.find('item'); | |
}, |
OlderNewer