Skip to content

Instantly share code, notes, and snippets.

# see http://www.aeonscope.net/2010/02/22/managing-multiple-heroku-accounts/
# INTRODUCTION
# This script echos the active Heroku credentials (useful when switching between multiple Heroku accounts
# and remembering which one is active).
# USAGE
# ruby credentials.rb
@randland
randland / application_helper.rb
Created June 22, 2010 15:51 — forked from mtodd/enumerable_with_context.rb
Breadcrumbs. Uses Route recognition and intelligent naming
module ApplicationHelper
def breadcrumb(url, options = {})
options.reverse_merge!( :separator => ' » ',
:home_link => 'Home')
path_segments = url.sub(/\?.*/,'').split('/')[1..-1]
return '' if path_segments.blank? # ie: suppress breadcrumbs on homepage
Rails CMS alternatives
======================
Active projects:
---------------
adva-cms
repo: http://github.com/svenfuchs/adva_cms/
site: http://adva-cms.org/
Last update: 11/24/09
"the cutting edge Rails CMS platform"
@mchung
mchung / Gemfile-rails-2.3.8.rb
Created May 27, 2010 21:20
Rails! Featuring Bundler, Cucumber, RVM, Postgres, on Ruby-1.8.7
# Everything you need to do to get started with Rails 2.3.8
#
# As of June 14th, 2010 @ 2:30 p.m. MST
#
# This gist now features instructions to get Rails 3 up and running with:
# - Ruby 1.8.7-p174
# - Bundler 0.9.26
# - Cucumber 0.8.0
# - Rspec 1.3.0 + Rspec-Rails 1.3.2
# - RVM
@jtimberman
jtimberman / command line
Created October 31, 2009 19:37 — forked from auxesis/command line
shell script testing with cucumber
bin/cucumber --require features/ features/example-script.feature
@jqr
jqr / heroku.rake
Created April 24, 2009 13:24
Automatically Generate the Heroku gems manifest from gem dependencies
namespace :heroku do
desc "Generate the Heroku gems manifest from gem dependencies"
task :gems do
RAILS_ENV='production'
Rake::Task[:environment].invoke
list = Rails.configuration.gems.collect do |g|
command, *options = g.send(:install_command)
options.join(" ") + "\n"
end