Git Railed

This is just a little something I threw together this weekend to make life a little easier. git-railed is a simple script that creates a new rails app, initializes a new git repository, moving the db config and setting up the ignores for you. You can use it as a gem, and just run it like:


git-railed obligatory_blog

 

Or, just install it as a sake task, and run it llike:


sake git-railed APP=obligatory_blog

 

Installation notes can be found in the README, get it at github: http://github.com/ambethia/git-railed/tree/master

Please fork it, and customize the behaviors to your hearts content (git-merbed?).

Makes for some ugly SQL, but…


class Listing < ActiveRecord::Base
  belongs_to :book
  belongs_to :guide
 
  def <=>(other)
    self.guide.name <=> other.guide.name
  end
end

Book.find(1).listings.map{ |l| l.guide.name }
# => ["XYZZY", "BAR", "FOO", "QUUX"]

Book.find(1).listings.sort.map{ |l| l.guide.name }
# => ["BAR", "FOO", "QUUX", "XYZZY"]

 

Nice.

I can do anything

I can do anything in quicksilver… I can probably kill you through Quicksilver

- Chris Rohde

You can’t cache that

<Jason L Perry> the addresses dont change, they dont need to be geocoded every time
<Jason L Perry> wtf
<K. Adam Christensen> no…..shifting tectonic plates
<K. Adam Christensen> don't you watch discovery?
<K. Adam Christensen> fucking n00b
<K. Adam Christensen> you can't cache that