Skip to content

Instantly share code, notes, and snippets.

bitcoinerS bitcoiners

Block or report user

Report or block bitcoiners

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bitcoiners
bitcoiners / gist:1358785
Created Nov 11, 2011
troubleshooting friendly_id with nested resources
View gist:1358785
class OptionTerm < DerivativeTerm
..
friendly_id :ticker_symbol, :use => :slugged
..
has_many :trade_volumes
..
end
routes:
resources :option_terms do
@bitcoiners
bitcoiners / Rakefile
Created Aug 28, 2011 — forked from LBRapid/Rakefile
Rakefile for spree extensions
View Rakefile
require "rails"
require 'rake'
require 'rake/testtask'
require 'rake/packagetask'
require 'rubygems/package_task'
require 'rspec/core/rake_task'
require 'cucumber/rake/task'
SPREE_PATH = ENV['SPREE_PATH']
@bitcoiners
bitcoiners / Gemfile
Created Aug 23, 2011
Gemfile for my Spree application
View Gemfile
source 'http://rubygems.org'
gem 'rails', '3.1.0.rc6'
gem 'jquery-rails'
gem "haml-rails"
gem "json"
# Gems used only for assets and not required
# in production environments by default.
group :assets do
View widget-template.js
(function($){
$.widget("ui.mywidget", {
options: {
autoOpen: true
},
_create: function(){
// by default, consider this thing closed.
View ghkey.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'octopi'
require 'choice'
include Octopi
Choice.options do
header ''
View gist:51218
# SUPER DARING APP TEMPLATE 1.0
# By Peter Cooper
# Link to local copy of edge rails
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' }
# Delete unnecessary files
run "rm README"
run "rm public/index.html"
run "rm public/favicon.ico"
You can’t perform that action at this time.