My Recent Pastes (14 and counting)

Recent Pasties by heavysixer_ (14 and counting)

Below are summaries of the 14 most recent pasties by heavysixer_.

January 03, 2009
12:38PM EDT
by heavysixer_

1
2
3
4
5
Growl Notify & Autotest build log

Install Growl
http://growl.info/

October 12, 2007
6:19PM EDT
by heavysixer_

1
2
3
4
5
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true

October 12, 2007
9:51AM EDT
by heavysixer_

1
2
3
4
5
module FriendshipMethods
  def self.included(base)
    base.extend(ClassMethods)  
  end
  

October 04, 2007
4:33PM EDT
by heavysixer_

1
2
3
4
5
# I have a hm association which has an "order" on a "position" column
# this will work unless "include" is added as part of the find and then it ignore the 
# order param and orders by ID.

>> a.collections.find(1)

August 31, 2007
1:20PM EDT
by heavysixer_

1
2
3
4
5
This is my Mephisto install process:

Download the newest version of mephisto from:
svn co http://svn.techno-weenie.net/projects/mephisto/trunk 

August 30, 2007
6:20PM EDT
by heavysixer_

1
2
3
4
5
Error: 500         
articles# create (ArgumentError) "wrong number of arguments (0 for 3)"

Exception Details

August 29, 2007
7:21PM EDT
by heavysixer_

1
2
3
4
5
>> self
=> #<Property id: 1, site_id: 1, featured_asset_id: 2, address_one: nil, address_two: nil, state: nil, zip: nil, country: nil, city: nil, units: nil, title: "my new property", year: nil, draft: 1, construction_type: nil, description: nil, created_at: "2007-08-30 01:50:54", updated_at: "2007-08-30 01:50:54">
>> self.valid?
ArgumentError: wrong number of arguments (0 for 3)
        from /Users/markdaggett/Sites/clients/benedict_partners/mephisto/vendor/rails/activerecord/lib/active_record/associations.rb:1086:in `select'

August 07, 2007
3:02PM EDT
by heavysixer_

1
2
3
4
5
# In the init.rb of the plugin

ActionController.class_eval do
  include MephistoExceptionNotifiable
end

August 07, 2007
9:27AM EDT
by heavysixer_

1
2
3
4
5
Processing ApplicationController#index (for 74.62.119.114 at 2007-08-07 08:08:25) [GET]
  Session ID: f54e0c6a8141fd75c75bdda800e47359
  Parameters: {"action"=>"index", "controller"=>"admin/overview"}


February 13, 2007
6:34PM EDT
by heavysixer_

1
2
3
4
5
module VXMLController
  module Controller  
    def self.included(base)
      base.extend(ClassMethods)
    end

January 12, 2007
7:15PM EDT
by heavysixer_

1
2
3
4
5
irb(#<ReportsController:0x3a0c3a0>):021:0> @collection_to_array.videos
DRb::DRbUnknownError: ActiveRevver::
        from /opt/local/lib/ruby/1.8/drb/drb.rb:1090:in `method_missing'
        from /opt/local/lib/ruby/1.8/irb/context.rb:219:in `old_evaluate'
        from /opt/local/lib/ruby/gems/1.8/gems/rails-1.1.6/lib/breakpoint.rb:471:in `evaluate'

December 22, 2006
2:03PM EDT
by heavysixer_

1
2
3
4
5
<div class="content_column" style="width:315px;"> 
  {% for article in articles limit:section.articles_count/2 %} 
   {% include 'brief_article' %}
  {% endfor %}
</div>

December 10, 2006
12:57PM EDT
by heavysixer_

1
2
3
4
5
class Reader < ActiveRecord::Base
  is_a_collection :of => ["blogs"]
end

class Feed < ActiveRecord::Base

December 10, 2006
12:31PM EDT
by heavysixer_

1
2
3
4
5
# Creates @reader.blogs
class Reader < ActiveRecord::Base
  acts_as_collection :of => ["blogs"]
end