In Ember, the application's state manager handles routing. Let's take a look at a simple example:
App.stateManager = Ember.StateManager.create({
start: Ember.State.extend({
index: Ember.State.extend({
route: "/",If Animal and Fozzie wanted to pair on Animals machine and they both have access to shared.muppets.com then they could use the following setup
~/.ssh/configHost tunnel_from_muppets
Hostname shared.muppets.com
RemoteForward 1235 localhost:22
| class User < ActiveRecord::Base | |
| attr_accessible :name | |
| has_many :admin_memberships, class_name: "Membership", conditions: {role: 'admin'} | |
| has_many :editor_memberships, class_name: "Membership", conditions: {role: 'editor'} | |
| def admin? | |
| admin_memberships.exists? | |
| end |
| input "app" do | |
| match "app/lib/**/*.js" do | |
| minispade :rewrite_requires => true, :string=> false, :module_id_generator => proc { |input| | |
| id = input.path.dup | |
| id.sub!('/lib/', '/') | |
| id.sub!(/\.js$/, '') | |
| id.sub!(/\/main$/, '') | |
| #id.sub!('/tests', '/~tests') |
| {"api_response":{"tags":"","groupPointAward":"0","fullUrl":"http://newsit.net/assets/badges/multitasker.png","dateIssued":"1327945543","pointAward":"0","serviceType":"1","endTime":"0","rules":{"Rule":{"actionTag":"Video_Watch","achieved":"0","sortOrder":"1","serviceActionType":"none","type":"count","serviceType":"nitro","operator":"GE","goal":"1","completed":"false"}},"ruleMatchType":"0","startTime":"1327945543","completionCount":"0","hideUntilEarned":"0","name":"Be a Multitasker Workaround Test","repeatable":"0","folderName":"Participation","groupFlag":"0","applyMultiplier":"0","pointCategory":"Points","dailyAchievementLimit":"0"}} |
| App.collectionController = Em.ArrayProxy.create(Ember.PaginationSupport, { | |
| content: [], | |
| fullContent: App.store.findAll(App.Job), | |
| totalBinding: 'fullContent.length', | |
| didRequestRange: function(rangeStart, rangeStop) { | |
| var content = this.get('fullContent').slice(rangeStart, rangeStop); | |
| this.replace(0, this.get('length'), content); | |
| } | |
| }); |
| require "json" | |
| require "rake-pipeline-web-filters" | |
| input "assets" | |
| output "public" | |
| class HandlebarsFilter < Rake::Pipeline::Filter | |
| def initialize(&block) | |
| block ||= proc { |input| input.sub(/\.handlebars$/, '.js') } | |
| super(&block) |
| # | |
| # Some helper methods | |
| # | |
| app = | |
| activePage: -> | |
| $(".ui-page-active") | |
| reapplyStyles: (el) -> |