Don't feel good copying this from ember-rails ;( but it's explained really well there.