Displaying 20 results from an estimated 700 matches similar to: "Problem with joining..."
2006 Aug 16
3
Question RE Rails associations
Hi,
I am new to Ruby and Rails programming and am having difficulty with the
following scenario...
Consider the following model:
class Studio < ActiveRecord::Base
has_many :movies
has_and_belongs_to_many :actors
end
class Movie < ActiveRecord::Base
belongs_to :studio
has_and_belongs_to_many :actors
end
class Actor < ActiveRecord::Base
has_and_belongs_to_many :studios
2006 Jan 09
1
Saving an upload
I am creating a database for movies (films) and television shows (shows)
that will have has_and_belongs_to_many relationships with the pictures
table.
CREATE TABLE screenshots (
id serial NOT NULL,
filename character varying NOT NULL,
content_type character varying NOT NULL,
primary key (id)
);
CREATE TABLE films (
id serial NOT NULL,
name character varying NOT NULL,
2006 Jan 21
7
n-way joins
Hi,
I''m somewhat of a Rails newbie and am trying to understand how to
formulate n-way (3 or 4 way) joins in Rails (where the join tables
contain extra data as well.)
Let me give you my basic entities:
foos
id - pk
name - unique
bars
id - pk
name - unique
bazs
id - pk
name - unique
frozs
id - pk
name - unique
then i have two separate join tables:
foos_bars_bazs - 3 way join
2008 Apr 23
0
self referential (n-n relationship) belongs many controller
Hi all,
I ve some troubles in my small acpplication (only 2 tables).
I want to follow up tasks but these tasks are linked to others tasks.
So I ve tried to do store the nn relationship in other table called
links
1st table : tasks
columns : id | infos neutral... (as title, description etc ...)
-----------------------------------------------------------------------------------
model :
class
2006 Apr 04
3
newbie - HABTM problems writing to Join Table in SQL
I am attempting to document a join between two tables. There seems to be
no writing to my database. Please help me out it is driving me absolutly
crazy.
Basically i''ve got a table of directors that is called when the new/edit
controller model for films is activated. It shows the user a selectable
list of directors they can apply to films. The problem is in the
update/create part. I
2006 May 18
1
ActiveRecord problems from within template
Hi,
my Film model has this:
has_many :live_action_personnel,
:class_name => "Credit",
:include => :credit_type,
:order => ''credit_types.position, credits.position ASC'',
:group => ''credit_types.personnel_type'',
2006 Mar 11
1
Ordination of feature film data question
I am severely rusty re. multivariate / ordination analysis, having done my last work 40 years ago (in plant ecology).
I am interested in exploring applications of multivariate analytic approaches to data from the history of motion picture films.
I'd very much appreciate any pointers as to possibly appropriate proceedures.
The individual "samples" may be individual films and the
2008 Aug 01
0
sensitivity
Hi All,
the new release v1.4-0 of the "sensitivity" package is now available on CRAN
The "sensitivity" package is devoted to factor screening and global sensitivity analysis
of numerical model output.
Here are the new features list:
New functionalities:
* sequential bifurcation method (sb function) [VERSION ALPHA]
* 3D plot 3D for the Morris method (function
2008 Aug 01
0
sensitivity
Hi All,
the new release v1.4-0 of the "sensitivity" package is now available on CRAN
The "sensitivity" package is devoted to factor screening and global sensitivity analysis
of numerical model output.
Here are the new features list:
New functionalities:
* sequential bifurcation method (sb function) [VERSION ALPHA]
* 3D plot 3D for the Morris method (function
2010 Sep 22
2
cwhmisc package error
R-listers,
I'm working on a project where I need to get the lowercase of the county
variable in a dataset alike to the example below (only difference is that
the full dataset has all the states and counties in the southeast United
States). I keep getting this strange error with the lowerize function
(which didn't occur the first few times I use the code below), and oddly
enough the error
2013 Jun 15
2
Plotting two y-axis vs non-numeric x-axis
Hi dear all, the following code is correct. but I want to use non-numeric
x-axis, for example
if I replace time <- seq(0,72,6) by
month <-
c("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","Pag")
Ofcourse I use factor(month) instead of
2006 Jan 25
1
deep inspecting attributes
Hi there,
in one of my templates I have the following code:
<% for film in @artist.films %>
<h3>films</h3>
<p><%= link_to film.title, :controller => ''films'', :action => ''showfilm'', :animate_title => film.animate_title, :page => ''synopsis'' %></p>
<% end %>
however if I do:
<%=
2008 Sep 30
2
[LLVMdev] Integer handling
OvermindDL1 wrote:
>
> It is using the Actor-Oriented model, not Object-Oriented.
> /* snip */
> By keeping the type system based on the actual types it allows
> arbitrary message passing to any other actor without needing to load
> any code relating to the actors, you can just send a structure with
> the appropriate ID and format and it will 'just work' as the
2009 Apr 16
2
[LLVMdev] LLVM and coroutines/microthreads
I saw this was mentioned briefly last year, but there seemed to be
some confusion as to what coroutines entailed and the thread died out.
This technique has an unfortunate number of names, but it does get a
lot of use, including popular languages like Ruby.
I'm currently working on a programming language called Minnow
(http://www.minnow-lang.org). It's an actor-based language, where
2010 Apr 10
3
nfs-alpha feedback
I ran the same dd tests from KnowYourNFSAlpha-1.pdf and performance is
inconsistent and causes the server to become unresponsive.
My server freezes every time when I run the following command:
dd if=/dev/zero of=garb bs=256k count=64000
I would also like to mount a path like: /volume/some/random/dir
# mount host:/gluster/tmp /mnt/test
mount: host:/gluster/tmp failed, reason given by server: No
2017 Jan 13
11
[Bug 99396] New: Crash in nouveau_dri.so when switching apps with alt-tab in Gnome
https://bugs.freedesktop.org/show_bug.cgi?id=99396
Bug ID: 99396
Summary: Crash in nouveau_dri.so when switching apps with
alt-tab in Gnome
Product: Mesa
Version: git
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/DRI/nouveau
2008 Sep 30
2
[LLVMdev] Integer handling
OvermindDL1 wrote:
>
> I know why it was removed, and it does make sense, just would be nice
> if there was an option to be able to get two pointer to a specific
> llvm::IntegerType, functionally they would be identical, but for user
> code (hence, my code) would be useful as I could match it for the
> different ones at generate different code for each.
>
Well a language
2010 Mar 18
3
Using indexing to manipulate data
I know one of R's advantages is it's ability to index, eliminating the need
for control loops to select relevant data, so I thought this problem would
be easy. I can't crack it. I have looked through past postings, but
nothing seems to match this problem
I have a data set with one column of actors and one column of acts. I need
a list that will give me a pair of actors in each row,
2009 May 12
4
has_many :through and scopes: how to mutate the set of associated objects?
I have a model layer containing Movie, Person, Role, and RoleType,
making it possible to express facts such as "Clint Easterbunny is
director of the movie Gran Milano".
The relevant model and associations look like this
class Movie < ActiveRecord::Base
has_many :roles, :include => :role_type, :dependent => :destroy
has_many :participants, :through => :roles, :source
2005 Nov 07
5
Switchtower deployment
Hi,
Has anyone experiences using SwitchTower (Windows) in a shared hosting
environment (Textdrive)? I already patched the SwitchTower rake tasks (I
don''t know if someone is interested on it), but i still experience some
problems (not in the sudoers list, ...).
Thank you for answer (and thank you to the textdrive guys, i never had a
such fast support!)
--
Jean-Etienne Durand