My Recent Pastes (41 and counting)

Pastes by mrneighborly (41 and counting)

Pages:

Below are the 15 most recent pasties by mrneighborly.

May 11, 2009
12:02PM EDT
by mrneighborly

context "With anonymous" do    
  context "viewing" do
    before do
      Wiki.allow_anonymous_view = true
    end

April 01, 2008
8:32PM EDT
by mrneighborly

def call(env)
  static_handler = Rack::File.new('static/')

  request = Rack::Request.new(env)
  static_handler.call if (request.path_info =~ /\.(.*)$/ || request.path_info == '/')

March 30, 2008
11:38PM EDT
by mrneighborly

      
      def self.load_from_yml
        puts "Seeding #{get_model_class_name} from a Yaml file"
        load_fixtures(File.join('db', 'seeds'), 'yml')
      end

March 30, 2008
11:20PM EDT
by mrneighborly

(in /Users/jeremymcanally/code/contribute)

      *******************************************************************
      * config.breakpoint_server has been deprecated and has no effect. *
      *******************************************************************

March 30, 2008
9:54PM EDT
by mrneighborly

## Basic case

class ThingsSeed < Seed::Planter
end

March 22, 2008
12:05AM EDT
by mrneighborly

  def breadcrumbs(extra = nil)
    crumb_list = []
    
    objs = parent_objects
    # If there is no current object...

March 13, 2008
10:40PM EDT
by mrneighborly

LoadError (Expected /var/www/apps/rails-wiki/releases/20080313011336/vendor/plugins/open_id_authentication/lib/open_id_authentication/db_store.rb to define OpenIdAuthentication::DbStore):
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:249:in `load_missing_constant'
    /vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:453:in `const_missing'
    /vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:125:in `open_id_store'
    /vendor/plugins/open_id_authentication/lib/open_id_authentication.rb:120:in `open_id_consumer'

March 11, 2008
10:11AM EDT
by mrneighborly

diff --git a/app/helpers/pages_helper.rb b/app/helpers/pages_helper.rb
index d4b23b8..646c42d 100644
--- a/app/helpers/pages_helper.rb
+++ b/app/helpers/pages_helper.rb
@@ -2,16 +2,16 @@ module PagesHelper

November 07, 2007
2:33PM EDT
by mrneighborly

  class AcceptanceOf
    def initialize(expected)
      @expected = expected
    end

October 27, 2007
11:16AM EDT
by mrneighborly

$(document).ready(function(){
   $('billing_address_list').hide();
});

$("organizer_single_address").click(function(){

October 18, 2007
8:31PM EDT
by mrneighborly

    # Find the files to process, ignoring temporary files,
    # source configuration management files, etc., and return
    # a Hash mapping filename to modification time.
    def self.find_files
      set_last_check

October 18, 2007
3:15PM EDT
by mrneighborly

<%= f.select :recipient_id, Connection.select_for_connected_to(current_user), { :selected => params[:recipient_id] } %> 

October 02, 2007
8:38PM EDT
by mrneighborly

IO.popen('tail -n0 test.out') { |f|
  while line = f.gets
    throw :quit if line.chomp == 'quit'
    @data << line
    puts line.inspect

July 26, 2007
2:31PM EDT
by mrneighborly

ActionController::Routing::Routes.draw do |map|
  map.resources :books do |books| 
    books.resources :units 
  end

July 17, 2007
3:59PM EDT
by mrneighborly

; <<>> DiG 9.3.4 <<>> forums.cocoaforge.com
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46684
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2

Next page