similar to: ActiveRecord Error with << in Collection

Displaying 10 results from an estimated 10 matches similar to: "ActiveRecord Error with << in Collection"

2006 Dec 05
7
Dynamic # of Attributes for a Model (key/val table) Get/Set?
I''m working on a simple product catalog. Products have user defined attributes, such as: color, size, weight. More attributes can be added at any time. Since these attributes are not known ahead of time, they cannot be created as columns. My table structure (simplified): products -------- id name attrs -------- id name product_attrs -------- id attr_id value And some sample code: ##
2015 Oct 14
2
Use repadmin /showobjmeta would caused samba 4.3.0 fault
I had a AD with 4 Win2003 DC. Now I use a samba4 server as a additional DC. Samba4 server system version: ubuntu 15.04 Samba version: samba 4.3.0 The replication from win2003 DC to samba4 DC was success. But have some problem from samba4 DC to win2003 DC. I can run "samba-tool drs showrepl" without error. But in log.samba it can found many message like: [2015/10/09 12:53:11.562088, 0]
2005 Oct 14
1
join tables and position (acts_as_list)
I''m working on some schema for a new project that we''ll be doing in rails (our first rails project!). A recurring structure we are seeing is the desire to define an ordering any way we wish, so ''acts_as_list'' comes to the rescue. But, the ''position'' column seems to need to belong in the join table to make sense. For example, we have
2011 Jul 26
0
active record wants root password, not sure why ..
When I run a command program (rails 3/ruby 1.9.2) as this: class MsdsAttr < ActiveRecord::Base include MsdsAttrModule belongs_to :attribute_record, :polymorphic => true has_many :attribute_values, :foreign_key => ''attribute_id'' has_many :alt_values, :as => :alternative has_many :msds_ingredients end ActiveRecord::Base.establish_connection( :adapter =>
2018 Jul 09
2
Repadmin fails when querying Samba server 4.7.6
I'm trying to fix a replication error that occurs between Win2008R2 (srvwin) and Samba 4.7.6 DCs (srvsamba). Event viewer on Win2008R2 server reports that synchronization failed on a specific Computer object because of schema version misalignment between servers. I've then used repadmin to compare failing object on the two servers. Querying the windows server works but it fails
2017 Jan 05
3
[PATCH net-next] net: make ndo_get_stats64 a void function
The network device operation for reading statistics is only called in one place, and it ignores the return value. Having a structure return value is potentially confusing because some future driver could incorrectly assume that the return value was used. Fix all drivers with ndo_get_stats64 to have a void function. Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com> ---
2017 Jan 05
3
[PATCH net-next] net: make ndo_get_stats64 a void function
The network device operation for reading statistics is only called in one place, and it ignores the return value. Having a structure return value is potentially confusing because some future driver could incorrectly assume that the return value was used. Fix all drivers with ndo_get_stats64 to have a void function. Signed-off-by: Stephen Hemminger <sthemmin at microsoft.com> ---
2006 Sep 26
4
Some documents not found
I''m a ferret newbie, so hopefully I''m missing something simple :) I am using ferret to index data about 36,000 products from a MySQL database. The index has one document for each product, with these important fields: id: the id (unique) of the product record in the database content: a concatenation of several bits of information from the product and associated records I
2006 Jun 26
1
How to model attribute and attribute-value dependencies
I''m being sneaky and reposting this question; I got no anwsers perhaps because I posted it over the w/end. I apologize for this but I''m completely stumped and need either an answer or some clue about how my approach is flawed. Thanks... I have a rails application which has a table ''cells'' which contains some 80 or so attribute fields (related to the electrical
2011 Jul 25
4
Rails 3 test database issues
I am having a problem using the test database in Rails 3. It apparently has kept track of aspects of the database that I deleted completely from my migrations at some point. I don''t always use the ''down'' part of a migration and sometimes just recreate the whole database. I did rake db:migrate:reset and rake db:test:prepare, but when I run my test it is trying to access