My Recent Pastes (109 and counting)
Pastes by halorgium (109 and counting)
Below are the 15 most recent pasties by halorgium.
May 28, 2007
7:10PM EDT
by halorgium
View all 29 lines
## Request http://www.trademe.co.nz/Browse/EmailToFriend.aspx?type=auction&id=102100616 ## Email content
May 15, 2007
5:15PM EDT
by halorgium
View all 109 lines
## config/deploy.rb $:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'recipes/mongrel_cluster'
May 08, 2007
10:46PM EDT
by halorgium
View all 19 lines
## Controller class ApplicationController # Or wherever before_filter :login_required before_filter :add_unauthenticated_permission_handling
May 03, 2007
8:08AM EDT
by halorgium
View all 43 lines
## Controller [ruby] def swap if request.post? @invigilators_for_courses = params[:courses].inject({}) do |hash,id|
May 03, 2007
8:04AM EDT
by halorgium
View all 30 lines
## Controller [ruby] def swap if request.post? @invigilators_for_courses = params[:courses].inject({}) do |hash,id|
May 03, 2007
7:37AM EDT
by halorgium
View all 11 lines
## Original @courses = params[:courses].inject([]) { |acc, id| acc << Course.find(id) } ## Replacement
April 24, 2007
10:25PM EDT
by halorgium
View all 71 lines
## The class implementation class Summer @@defines = {}
April 12, 2007
4:18AM EDT
by halorgium
View all 14 lines
# the value is in the session: session[:test][:status] def current_status @current_status ||= begin
April 12, 2007
4:10AM EDT
by halorgium
View all 17 lines
## Option 1 class Test def welcome(say) puts say end
April 10, 2007
9:17PM EDT
by halorgium
View all 24 lines
## controller action # params = { # :model => 'car-model', # :id => '1',
April 03, 2007
7:37AM EDT
by halorgium
View all 50 lines
require "test/unit" require 'rubygems' require 'mocha' require 'stubba'
March 22, 2007
7:01PM EDT
by halorgium
View all
189 lines
Includes file attachment.
## config/routes.rb [ruby] map.resources :players do |player| player.resources :events, :name_prefix => 'player_', :controller => 'player_events', :without => :member end
March 20, 2007
5:02AM EDT
by halorgium
View all 16 lines
class Foo; attr_accessor :test; end #=> nil f = Foo.new #=> #<Foo:0x84fbb74> f.test = "FOO"
