November 2011
6 posts
4 tags
For SpineJS With Rails Use spine-rails
I’ve been learning how to use spinejs with rails. When I’m learning I like to forgo code generators as much as possible and write the necessary code myself. I’ve done that with the past few projects I’ve posted here.
However, for most of my future projects I’m going to use the spine-rails gem. The gem is written by Alex MacCaw, the author of spinejs which is much nicer than the situation of...
6 tags
Rails With SpineJS and Google Maps
I wanted to create a simple project that used ruby on rails, spinejs, and google maps together. I came up with the following features:
Dragging a marker icon from outside of a map onto a map creates a marker on the map and in the database
Dragging a marker from one position to another updates the marker on the map and updates its position in the database
Right-clicking on a map marker removes...
3 tags
Backbonejs with Coffeescript Book
A friend of mine, Chris Smith, is writing a book about using coffeescript with backbone. He’s given me a sneak peek and I have to tell you: it’s going to be awesome. You can sign up here to get early access to sample chapters and more.
6 tags
Formatting Coffeescript For Tumblr
I’ve been trying to figure out a good way to format my code examples. There are plenty of options for Ruby, but nothing good for Coffeescript, especially if you’re using a hosted blog system like tumblr.
I’ve settled on using github’s gist embedding:
It isn’t as convenient as having the code inline, but it works well.
4 tags
SpineJS With Rails Screencast Transcribed
I transcribed the “Spine and Rails” screencast by Alex MacCaw and put it together with the source code on github.
5 tags
When Textmate Can't Find Coffeescript
When you try to use the textmate coffeescript bundle you may get the error: coffee: command not found. As the coffeescript bundle’s README points out, textmate doesn’t inherit your regular PATH. You need to go into textmate’s preferences (Preferences > Advanced tab > PATH variable) and add the path to coffeescript.
You need to figure out where coffeescript is with the...