This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# get lunchy: gem install lunchy | |
lunchy stop postgres | |
# Run this script to enable the Ramdisk for Postgres | |
VolumeName="postgres-memory" | |
# Size in MB, make sure is not too low or not too high | |
SizeInMB=2048 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class CategoriesController < ApplicationController | |
before_filter :require_admin | |
before_filter :get_category, :only => [:show,:edit,:update,:destroy] | |
respond_to :html, :xml, :json | |
responders :flash, :http_cache, :collections | |
def index | |
respond_with( @categories = Category.query(params) ) | |
end |