Displaying 7 results from an estimated 7 matches for "publication_ids".
Did you mean:
publication_id
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.
=====
2008 Jan 18
2
has_many :through with self-referencial AND polymorphism
Hello, despite many readings I still don''t understand how to solve my
problem.
I have Publication, Picture, File classes
A Publication can be related (a one way relation, like a www link) with
another Publication, Picture or File
I tried this :
Publication :
has_many :related_elements, :dependent => :destroy, :foreign_key =>
:publication_id
has_many :related, :through =>
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,
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
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:
publication_ids"=>["", "4256,4271"]
The quotes are missing and only the first relation gets saved.
Since the problem is only in the aja...
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.