Skip to content

Instantly share code, notes, and snippets.

View semanticart's full-sized avatar

Jeffrey Chupp semanticart

View GitHub Profile
@semanticart
semanticart / gist:1285976
Created October 14, 2011 00:59 — forked from mariovisic/gist:1281432
ruby 1.9.3 working with ruby-debug
curl https://github.com/ruby/ruby/pull/47.patch >> /tmp/r193.patch && rvm install 1.9.3-preview1 --patch /tmp/r193.patch && rm /tmp/r193.patch
def data
data = {
:success => true,
:site => Site.find(params[:id]).site
}
render :json => data.to_json
# Returns {
# 'success': true,
# 'site': {
# 'site': {