similar to: has_many :through with self-referencial AND polymorphism

Displaying 17 results from an estimated 17 matches similar to: "has_many :through with self-referencial AND polymorphism"

2006 Dec 08
2
trouble using ActiveRecord classes
I''ve been trying unsuccessfully for the better part of today to write a worker that can use by ActiveRecord model classes. The bizarre thing is that worker just stops at the point accessing the database connection. An exception isn''t raising, it just dies. My worker class is below, I''ve interspersed log messages throughout to try to determine where it is dying. =====
2007 May 22
2
find :all :include broken on Oracle 10
Hi, I am trying the following in Ruby using InstantRails 1.7 on WindowsXP Publication.find(:all, :include => [:doc_type, :release_state] ) but I get the error: OCIError: ORA-00904: "DOC_TYPES"."PUBLICATION_ID": invalid identifier: SELECT publications.id AS t0_r0, publications.docid AS t0_r1, publications.doc_type_id AS t0_r2, publications.title AS t0_r3,
2006 Feb 21
7
Self-referencial habtm relationship
Heyo! I am setting up a self-referencial habtm relationship with the users of my app. I am using Chad Fowler''s "Rails Recipes" to get me started, and everything works great with the join table "people_friends". I add friends by doing somebody.friends << somebodyelse. However, with my app, there is an approval process so my join table has columns person_id,
2007 Feb 07
0
strange sqlite3 errors - validates_associated & failing activerecord unit tests
I''m getting two strange errors, both which I believe relate to sqlite3. The first one is with validates associated. Here is my test: require File.dirname(__FILE__) + ''/../test_helper'' class SubscriptionPlanTest < Test::Unit::TestCase fixtures :subscription_plans fixtures :publications def setup @six_month_gold = subscription_plans(:six_month_gold)
2006 Jun 10
0
Dynamic file paths in FileColumn
I have a file uploader application in ROR using the very nice FileColumn plugin. In looking at the source code I can see that there is a DEFAULT_OPTION hash with some root path options and such which can be merged from an options paramater. These static path changes are not a problem. My question is dynamic path options. My upload form, when you boil it down, has two fields. The first is
2007 Sep 23
3
Connecting a row of an unknown table to another row of an unknown table
Hello all, I''m currently designing a web app in Rails that lets me keep a directory of free/opensource computer games. Each game has attributes like name, website, review, etc., but each game can also be associated with a set of genres and gameplay elements. The main three tables I''m working with are "games", "genres", "elements",
2008 Nov 17
4
Debugging Asterisk
Hello all, Two questions: 1) What do people on the list do to debug phone quality issues. Phone quality seems to be a very subjective thing. But are there metrics that you can work against? Like maybe generating a tone and measuring the return quality etc? It looks like all trial and error right now. If that is the way it is, then fine. But anything more accurate / scientific? 2) Also
2006 Jun 09
2
Support for clustered primary key in rails?
Hi, I need to support a legacy database that mostly uses clustered primary keys (i.e. every primary key consiststs of multiple fields not just a single one. E.g. if I have tables A,B and C and C depends on tables A and B, then C''s primary key will consist of 3 or more fields- the foreign key fields pointing to A and B and a field or fields from C that will make C unique- in
2005 Dec 28
4
"valid users" + ldap on Solaris 10 problems
Hello, We have just migrated a server from sun solaris 8 to sun solaris 10. In the old machine we had a Samba 3.0.20b and in the new one, we have samba 3.0.21, both compiled like this with no problems: env LD_FLAGS="-L/usr/local/lib" ./configure --with-ldapsam --without-pam --with-quotas --with-ldap --with-included-popt --with-acl-support --with-libsmbclient We share user's
2006 Nov 28
0
tzinfo_timezone/tzinfo can't modify frozen object
Hi. I get the following error off and on in my app. I''m running latest EdgeRails in development mode, and use the tzinfo_timezone plugin and the tzinfo 0.3.3 gem. I''ve checked line 210 in tzinfo_timezone.rb but cannot relate that to an object modification in tzinfo. Any tips much appreciated. ActionView::TemplateError (can''t modify frozen object) on line #29 of
2019 Mar 25
2
Uso de merge
Jose Luis Column `Country` joining factors with different levels, coercing to character vector common_col_names <- intersect(names(sub_kei), names(knowledge)) > common_col_names [1] "Country" "Year" nrow(sub_kei) <- 132 nrow(knowledge) <- 3864 Tiene distinto numero de pais como de año, en el sub_kei aparecen 5 años y en el otro dataset (knowledge) datos anuales
2010 Sep 11
10
Having difficulty with threaded comments, using acts_as_tree
I''ve been having problems making threaded comments for the last few days. Mainly with creating children and displaying the children. Currently, I have comments shown at the bottom of my articles show view. The top level comments work, but I do not really know how to implement a way for users to "reply" to the top level comments and take them to a form (the comment
2006 Jun 12
8
Input/output error on linux
Hi, I''m trying to use mongrel 0.3.13 with Rail 1.0 Believe it or not, on OS/X it works well for weeks at a time. On linux I''m getting Input/output errors after anything from a few hours to days, never more than a week. Once they start they don''t stop. The only pattern I''ve seen is that it always (seems) to happen while rendering an rhtml file.
2013 Feb 19
0
ajax breaking multiline select habtm parameters
I have a journalist and publication model related with a habtm. In the edit journalist form there is a multiline select for publications. When :remote => false this works well, the parameter for the publications looks like: publication_ids"=>["", "4256","4271"] BUT if I use :remote => true the parameter array allways has size = 2:
2015 Sep 02
3
Samba4.2.3 Authentication
Hello, Need your guidance in setting up SAMBA 4.2.3 on CentOS7 with proper authentication. Below are the details of my smb.conf file. Problem: incorrect authentication when accessing share from windows machine a) "worm" share is guest only and can be accessed by any person without authentication b) "secure_worm" is share which require authentication from the user when I
2015 Aug 05
5
LDAP bindpw password
Hi. I'm using Samba 4 on two Zentyal servers as Domain Controller and now I have to authenticate some services to it (Apache and PAM in particular). The LDAP integration asks me for a LDAP bind password, but I cannot find out where it is on Zentyal. Is there a way to check (or change it) directly on Samba 4? Or is it preferable to authenticate against Active Directory or Kerberos? Thank you
2009 Nov 22
5
¿Cómo se llama R?
Hola, ¿qué tal? Después de un paseo por la Wikipedia en español he llegado a la conclusión de que no sé cómo se llama R. En la Wikipedia se lo conoce como "R-project", así, en inglés. Existen otros nombres que redireccionan a la misma página, tales como: Lenguaje de programación R GNU S Lenguaje R GNU R R project (sin guión) A R no se lo puede llamar R a secas por lo de la