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
{{#linkTo catalogue.item item} | |
App.Router.map(function() { | |
this.resource('catalogue', function() { | |
// this.route('index'); - this is automatic | |
this.route('search', { path: ':searchvalue' }); | |
this.route('item', {path: '/view/:itemguid'}); | |
}); | |
}); |
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
App.Router = Ember.Router.extend({ | |
enableLogging: true, | |
root: Ember.Route.extend({ | |
// Transitions | |
showModuleDocuments: Ember.Route.transitionTo('moduleDocuments'), | |
showModuleTask: Ember.Route.transitionTo('moduleTask'), | |
showSettings: Ember.Route.transitionTo('settings'), | |
showManagement: Ember.Route.transitionTo('management'), | |
showAdministration: Ember.Route.transitionTo('administration'), |
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
window.App = Em.Application.create({ | |
LOG_TRANSITIONS: true | |
}); | |
App.deferReadiness(); | |
App.Router.map(function() { | |
this.route("login", { path: "/login" }); | |
this.route("explore", { path: "/explore" }); | |
this.route("events", { path: "/events" }); |
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 get = Ember.get; | |
/** | |
@extends Ember.Mixin | |
Implements common pagination management properties for controllers. | |
*/ | |
Ember.PaginationSupport = Ember.Mixin.create({ | |
/** | |
*/ |
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
In controller: | |
App.DashboardController = Ember.Controller.extend | |
workspaces: [] | |
currentWorkspace: null //set by /workspace/:id route | |
fetch: -> | |
//ajax load workspaces | |
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
Scvrush.PostsController = Em.ArrayController.extend({ | |
query: null, | |
updatePosts: _.throttle(function(value) { | |
var posts; | |
if (this.get("query") === "") { | |
posts = Scvrush.get("store").find(Scvrush.Post); | |
} else { | |
posts = Scvrush.get("store").find(Scvrush.Post, { query: this.get("query") }); |
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
bundle install |
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
{ | |
"vim": { "extra_packages": [ "vim-nox" ] }, | |
"run_list": ["recipe[vim]"] | |
} |
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
describe 1 do | |
let(:foo) { [] } | |
it "can push" do | |
foo.push 1 | |
foo.size.should == 1 | |
end | |
it "can push" do | |
foo.push 1 |
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
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |