Ember: Difference between routes and resources

My ass has been bitten several times when I confused routes and resources. This is a good explanation: http://stackoverflow.com/questions/14973556/what-is-the-difference-between-a-route-and-resource-in-new-router-api resource - a thing (a model) route - something to do with the thing Nesting resources inside resources doesn't nest the created controllers/routes/views (e…

Ruby: Thinking about rules engines

We're using Wongi Engine, which is cool but very hard to read and troubleshoot. I'm thinking it might be better to have something really simple, done in regular Ruby without a complicated DSL, until we can replace it with a real inference engine. Concept: catch(:abort) do check(fruit == 'Apple'…

Ember: Filtering content on an ArrayController

I felt very productive. Closed out a few tickets, pretty much all Ember stuff. I felt like I learned things, and this comes after a weekend of writing my own Ember app from scratch. I think I have a problem with some code I wrote. It bothers me. Here's one…

Ember: Quick note on router and outlets

Remember that routes and resources affect the URL and the location of the outlets. For example: /programs/:program_id/musts/:must_id looks like this: App.Router.map -> @resource 'programs', -> @resource 'program', path: ':program_id', -> @resource 'musts' @resource 'must', path: '/musts/:must…