Skip to content

Instantly share code, notes, and snippets.

@captproton
Created October 16, 2009 02:11
Show Gist options
  • Select an option

  • Save captproton/211480 to your computer and use it in GitHub Desktop.

Select an option

Save captproton/211480 to your computer and use it in GitHub Desktop.
Loading development environment (Rails 2.3.3)
>> @setting =BoilerPlateSetting.new
=> #<BoilerPlateSetting id: nil, target_audience: "", body: nil, salutation: nil, closing: "", opening: nil, lead_in: nil, contact_phrase: nil, closing_phrase: nil, creator_id: nil, created_at: nil, updated_at: nil>
>> @bp = BoilerPlate
=> BoilerPlate(id: integer, name: string, target_audience: string, creator_id: integer, body: text, salutation: string, closing: text, created_at: datetime, updated_at: datetime, opening: text, lead_in: text, contact_phrase: text, closing_phrase: text)
>> @setting.attributes = @bp.attributes.except(:id)
NoMethodError: undefined method `attributes' for #<Class:0x36a5218>
from /Users/heathertanner/Sites/rails/outbounder/vendor/gems/yfactorial-utility_scopes-0.2.2/lib/utility_scopes/ordered.rb:73:in `method_missing'
from /Users/heathertanner/.gem/ruby/1.8/gems/activerecord-2.3.3/lib/active_record/base.rb:1959:in `method_missing'
from (irb):3
>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment