- Apple’s Mac OS X
- Painc’s Coda
- Homebrew
- Justin Hileman’s Coda Cli
- Ruby on Rails project using Rails Footnotes
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)"
Install Coda Cli
brew install coda-cli
Open coda-uri.applescript
with the AppleScript Editor
Click File >> Save As >> File Format Application
Navigate to the newly saved application in Finder.
Control click on the application and select Show Package Content
Edit Contents/Info.plist
<key>CFBundleIdentifier</key>
<string>com.apple.AppleScript.CodaURI</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>Coda URI</string>
<key>CFBundleURLSchemes</key>
<array>
<string>coda-uri</string>
</array>
</dict>
</array>
Add gem 'rails-footnotes', :group => :development
to your GEMFILE if you havn’t already
Open config/initializers/footnotes.rb
Add Footnotes::Filter.prefix = 'coda-uri://open?url=%s'
after Footnotes.run!