Displaying 6 results from an estimated 6 matches for "attributes_cache".
2008 Jan 12
1
Collection_Select not showing Selected option
...:CallDriver
attributes:
name: Billing (TV)
segment_id: "1"
platform_id: "1"
updated_at:
product_line_id: "3"
id: "2"
sub_product_line_id: "7"
consolidation_id: "1"
skill_id: "1"
created_at: 2008-01-10 20:04:04
attributes_cache: {}
Debug results for ProductLine;
- !ruby/object:ProductLine
attributes:
name: RHP
updated_at:
id: "1"
created_at: 2008-01-09 20:16:56
attributes_cache: {}
- !ruby/object:ProductLine
attributes:
name: Internet
updated_at:
id: "2"
created...
2009 Aug 28
0
Nil object nightmare
...on_register.attendees %>
I get the following displayed in the browser ....
- !ruby/object:Attendee
attributes:
enrollee_id: "25"
created_at: 2009-08-27 15:10:41
updated_at: 2009-08-27 15:10:41
id: "1"
attended: f
lesson_register_id: "1"
attributes_cache: {}
- !ruby/object:Attendee
attributes:
enrollee_id: "26"
created_at: 2009-08-27 15:10:41
updated_at: 2009-08-27 15:10:41
id: "2"
attended: t
lesson_register_id: "1"
attributes_cache: {}
if I type ...
<%= debug lesson.lesson_registe...
2010 Oct 11
5
Object lost in memory/trashed?
...led for a Comment, debug displays the following:
--- !ruby/object:Comment
attributes:
comment: pouet
created_at: 2010-10-11 00:44:02
title: ""
commentable_type: Diagram
commentable_id: "29"
updated_at: 2010-10-11 00:44:02
id: "41"
user_id: "2"
attributes_cache:
created_at: 2010-10-11 00:44:02 Z
--- !ruby/object:User
attributes:
created_at: 2010-05-23 18:31:02
activated_at: 2010-06-08 22:23:19
send_news: "1"
remember_token_expires_at:
updated_at: 2010-09-19 22:36:42
activation_code:
old_email:
id: "2"
saved_once: &...
2010 Jun 08
9
[Rails Heroku] Problem with saving object (on heroku hosting)
Hi All,
I have some strange problem which appears only on heroku hosting 2.3.5
default stack (not on my local computer)
I have some models. Here they are:
class Contact < ActiveRecord::Base
belongs_to :user
belongs_to :type, :class_name => "ContactType", :foreign_key =>
"type_id"
validates_presence_of :name, :on => :create, :message =>
2010 Mar 23
0
Frozen hash problem
...hing seems to be deleted in the hash:
---
- &id001 !ruby/object:LabData
attributes:
created_at: 2010-03-21 22:16:06
unit_id: "3"
lab_id: "81"
updated_at: 2010-03-21 22:16:06
id: "184"
lab_desc_id: "6"
value: "29"
attributes_cache: {}
changed_attributes: {}
errors: !ruby/object:ActiveRecord::Errors
base: *id001
errors: {}
And if I remove the "raise", the controller throws a "can''t modify
frozen hash" error.
Any idea how I can remove records from the hash prior to saving?
TIA,
Cra...
2010 Nov 16
15
acts_as_taggable, undefined method 'empty?'
I''ve tried out ''acts_as_taggable'', ''acts_as_taggable_on'' and
''acts_as_taggable_on_steroids'' and all of them output "undefined
method ''empty?''" with the tag_cloud action.
I am following the guides precisely. Yet I can find no references to
this error anywhere, so I must be doing something wrong...
I am on