similar to: Question RE Rails associations

Displaying 20 results from an estimated 2000 matches similar to: "Question RE Rails associations"

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
2006 Aug 17
1
More on n-way.
Hey, i found some n-way threads on the list, but I think they don`t solve my case, or I didn`t understand how all of it works. I''m new to Rails, so be pacient. :) I''ll use an example of movie catalog, I''m realing doing a kind of movie catalog, for laerning rails, and I did this: Models: Movie, Actor, Director, Writer, Country, Language The Movie model HABTM Actor,
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
2008 Sep 30
0
[LLVMdev] Integer handling
On Mon, Sep 29, 2008 at 8:49 PM, Matt Giuca <mattgiuca at gmail.com> wrote: > /* snip */ The language I am making is not a traditional scripting language, it is designed for heavy math work. It has not classes, the basic data structure is a struct, yet even those are only used to pass messages. It is using the Actor-Oriented model, not Object-Oriented. I have been creating it to deal
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,
2007 Sep 10
6
RSpec view spec writing problem (unable to generate url_for in RESTful resource link_to)
Thanks, first, to everyone who''s asked and answered questions on this list, and to the creators of RSpec - it is all very helpful. I''ve searched the mailing list, and had a couple 2hr googling sessions that didn''t help me find an answer. I''ve run into a problem getting my first non-trivial view spec to run. I get an error when trying to generate a link_to()
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
2009 Apr 16
0
[LLVMdev] LLVM and coroutines/microthreads
On Thu, Apr 16, 2009 at 9:47 AM, Jonathan D. Turner <jonathan.d.turner at gmail.com> wrote: > 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
2006 Aug 15
1
Problem with joining...
Hello, I am quite new to Rails and i was wondering if i could get some help to populate a join table? I got (for example) a table called films, a table called acteurs and a join table called acteurs_films. I have specified the HABTM relationship and I manage to do it through the console by doing: acteur=Acteur.new acteur.name="blabla" acteur.films << film acteur.save and
2015 May 07
3
[LLVMdev] Pony Language: LLVM Project
Dear LLVM community, I am affiliated with the design and development of the Pony<http:/www.ponylang.org> programming language, which was recently published and has since been discussed on hacker news<https://news.ycombinator.com/item?id=9482483>, reddit [1]<http://www.reddit.com/r/ponylang>
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
2006 May 10
2
trouble creating new records
Is it possible to create / save a new record from a controller other than the one I specified when I created the scaffolding? My situation is that I have two tables. Emrecs is the parent. Actors is the child and has a foreign key named emrec_id that references emrec.id. I scaffolded both, creating controllers and views for each. My app collects info from the user to fill in the two tables,
2007 Sep 29
1
Visualization of two-mode matrix/ networks/ graphs
Hey all, I'm looking for a plotting method for two-mode networks. Having a n x m matrix where n is the first set of entities/ actors and m representing the second set, I want to colour both sets of actors differently. I tried "plot.network" from the network-package, but I did not succeed. Even the proposed solution from Gabor Grothendiek
2008 Sep 30
0
[LLVMdev] Integer handling
On Mon, Sep 29, 2008 at 9:48 PM, Matt Giuca <mattgiuca at gmail.com> wrote: > It seems like your language is very high level indeed (it almost sounds > dynamic). If you can pass arbitrary messages without needing to statically > know the type of anything, and pass data transparently from one machine to > another. It is in no way dynamic, everything is compiled down. All Actors
2001 Feb 26
2
R ignoring quantile() in source()d file
Can anyone explain this behavior? Essentially, I've created a short file to be read in via source() that gets some descriptive information on a series of variables in a data frame. For each variable, I do three things: print('last.hc.actors') quantile(last.hc.actors,probs=seq(0,1,0.1),na.rm=T) stem(last.hc.actors) where the variable name is (in this case) last.hc.actors. All that
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
2009 Apr 16
1
[LLVMdev] LLVM and coroutines/microthreads
On Thu, Apr 16, 2009 at 3:21 PM, OvermindDL1 <overminddl1 at gmail.com> wrote: > > First, I will assume that you have read > http://www.nondot.org/sabre/LLVMNotes/ExplicitlyManagedStackFrames.txt > and if you have not, do so. I hadn't. That's very similar to what I had tried early on, but found it was actually slower than managing my own stacks lazily (on continuation,
2006 May 26
3
capistrano on windows (again)
Hi all I didn''t get a response to my first post so I thought I''d try again. is anyone successfully using capistrano to deploy their app from a windows box? I''m trying to deploy a test app to my dreamhost account but all i get is "rake aborted!" with no further information. Can someone please confirm if capistrano even works under windows? many thanks al
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 Apr 18
3
Capistrano and Certificates
All, I''m setting up a deployment script with Capistrano at the moment, and am running into some trouble when it attempts to pull the code down from the SVN server when I run the deploy task. The SVN server runs over https, and the problem seems to be when I get asked whether I want to accept or reject the certificate. I hit ''p'' to accept the certificate permanently,