Skip to content

Instantly share code, notes, and snippets.

@vwall
vwall / USAGE.md
Created June 4, 2011 08:56 — forked from kossnocorp/USAGE.md
MacVim with Drawer compile manual

Clone & Build

curl https://gist.github.com/raw/970438/caff9a09ed2d223b1123a69ede17cb19ad352af9/build.sh | sh
@vwall
vwall / tpl-cukeapp.rb
Created May 17, 2011 03:30 — forked from paulmars/template.rb
Rails 3, RSpec, Cucumber, Factory_Girl, HAML, SASS, Devise, Formtastic Template
## Rails App Template
## Updated for Rails 3.0.7
## Created on 10/23/10
## Updated on 5/7/11
## Run using $ rails new [appname] -JT -m tpl-cukeapp.rb
## Gems
# Warden and Devise for security
gem 'warden', '1.0.4'
irb(main):016:0> ThinkingSphinx.search 'test', :classes => [Article, BlogPost]
Sphinx Querying: 'test'
Sphinx (0.004608s) Found 20 results
Article Load (0.5ms) SELECT `emp_articles`.* FROM `emp_articles` WHERE (`emp_articles`.`id` IN (1, 2, 3, 4, 5, 6, 7, 8, 9, 10))
(Object doesn't support #inspect)
=>
irb(main):017:0>