Monthly Archives: June 2013

Determining the current path in Ember.js

Do you want to know the current path in your Ember.js app? This was asked on Stack Overflow recently and I thought it was a neat trick. Now you can access your current path from anywhere with:

Posted in Uncategorized | Tagged , , | Leave a comment

Getting started with integration testing ember.js using ember-testing and qunit-rails

Ember-testing is a recent addition to the Ember.js framework that allows you to create integration tests for your app using a custom DSL for interacting with your async Ember.js app. We’re going to walk through how to write integration tests … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , | 8 Comments

Filtering a set of objects for display in Ember.js

A pretty standard use case in web development in to display a list of objects filtered by some kind of criteria. This is really easy to do in Ember.js using the filterProperty function from the Ember.Enumerable mixin, which is mixed … Continue reading

Posted in Uncategorized | Tagged , , | 3 Comments

Ensure your Ember templates get the correct name when pre-compiling in the Rake pipeline using Barber

I’ve been using Rake Pipeline as the build tool of choice for my Ember Phonegap Starter kit and making use of the Barber gem to pre-compile my Ember templates. Today I ran into a problem where my templates were being compiled but they … Continue reading

Posted in Uncategorized | Tagged , , , , , , , , , | Leave a comment

Getting google maps to work in a PhoneGap app on iOS

The Google maps guides should be enough to enable you to get a PhoneGap up and running with a Google Map however there are two gotchas that you should be aware of: 1) The div that hosts your map needs … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments

Clickable table rows in Ember.js

As pointed out in this Github issue, it is quite easy to wrap a make a table row clickable in Ember.js. https://github.com/jonnii  supplied this code snippet which allows you to make a whole row clickable for a {{#linkTo}} destination while … Continue reading

Posted in Uncategorized | Leave a comment