similar to: Many to Many

Displaying 20 results from an estimated 900 matches similar to: "Many to Many"

2006 Apr 19
4
Weird Problem - probably a noob mistake
I was up late last night trying to find the cause of this, but I''m stumped. I have this relatively simple controller to load up a bio. It''s basicly id, name, desc, type (I use STI). class BioController < ApplicationController layout ''layouts/singlepanel'' def index @bio = Bio.find(:all, :conditions => [''site_id = ?'',
2006 Apr 21
4
Dynamic Menu
Hi, I think I''m doing this the right way, but can''t get it going. I''m building a menu from the values in a mySQL table, and want to build it on the fly. This is something that should be working but only works halfway: <% @pages = Page.find(:all, :conditions => [''site_id = 4'']) %> <% @pages.each do |p| %> xyz <%p.id%> <%
2008 Jun 17
4
different logon scripts and mappings for individual users
i'm not sure how to create different logon scripts for different users. right now i have one logon script called 'logon.bat' that maps all users to a server share and syncs the time with the server. i need to be able to map different users to different server shares. not all users should be mapped to all server shares. these should be automatic mappings. for example: user1 should
2005 Jul 12
4
Calculation of group summaries
I know R has a steep learning curve, but from where I stand the slope looks like a sheer cliff. I'm pawing through the available docs and have come across examples which come close to what I want but are proving difficult for me to modify for my use. Calculating simple group means is fairly straight forward: data(PlantGrowth) attach(PlantGrowth) stack(mean(unstack(PlantGrowth)))
2008 Sep 03
5
universal netlogon script
Hi Guys, Advise, I have 200 users, they all have access to 20 shares in different combinations. They all have their own netlogon scripts... its a management nightmare, is there a way to create a universal netlogon script that I can include all the shares to mount and it will silently fail on the ones it cant? Perhaps there is a smarter way to implement this idea, lynching is welcome, so is
2005 Nov 25
2
acts_as_list with 2 fields in the scope
Hi Railers, I''ve got a Categories table. I want it to act as a list within the scope of the parent_id AND the site_id. Categories table : id label site_id parent_id So, in my Category class, I have : acts_as_list :scope => ''site_id = #{site_id} AND parent_id = # {parent_id}'' The problem is that when I try to move_up a Category with a parent_id that is null,
2008 Oct 16
1
merge/combine data
Hi, I have the following data imported from a csv file user_id site_id name 1 1 11 februari 2 1 11 redbook 3 1 11 tips 7 3 6 sleep 8 3 6 monitoring 9 3 6 alarm Which I would like to merge/combine into user_id site_id name 1 1 11 februari,
2006 May 10
4
Single Table Inheritance problem
I have two tables I am using single table inheritance with: Page and Item. "Page" has many "Items"; "Item" belongs to "Page". Item Model: class Item < ActiveRecord::Base end class Article < Item belongs_to :page end Page Model: class Page < ActiveRecord::Base end class Issue < Page has_many :articles end In my controller, when I
2006 May 25
11
belongs_to confusion and some other questions - thanks!
Hello all, Thanks for the help in advance, I am having some trouble with belongs_to, and I caint seem to figure it out. I have two tables, one called ''pow_users'' and one is called ''pow_site'' pow_users has a field called site that has the site ID for primary id in the pow_site'' table. the pow_site table setup as the Site class with the following:
2011 Aug 09
2
junction table question
I''m looking into how to implement a relationship between some models, and I think I need to use a junction table. From the documentation I''ve read, a junction table doesn''t require a model. But from my controller, I''m not sure how to get the data I need. Here''s a description of my models and what I need in my controller: Models 1. Event 2. Site 3.
2006 Apr 11
15
Migrating rails 1.0 app to 1.1 - Noob question
Hi all, I''ve upgraded my system to Rails 1.1.1 successfully. After much looking I haven''t found out how to migrate an existing application to a new rails version though. What is the procedure, if any, for upgrading the application I''ve developed in 1.0? Is there a script I need to run? -- Posted via http://www.ruby-forum.com/.
2006 May 23
7
self-referencing has_many
Having a devil of a time finding records in a self-referencing has_many table relationship. Everything is working find looking at the has_many and the belongs_to relationship. But, when I try to find all "orphans", records that are neither a parent nor a child, I can not find a query that work in ActiveRecord. This query works in MySQL: SELECT * FROM templates LEFT JOIN templates
2006 Jan 15
1
Attributes of a relationship
Hi all, I have two types of models which I''m not sure how to model (or if it''s even feasible) with ActiveRecord. Let me know if you''ve got any good ideas. 1) For those of you who are familliar with del.icio.us, you probably know that you can bookmark a site, and add your own tags to it. Each person has their own tags for a site, even though multiple people can
2006 Jul 12
5
railsapp/db/migrate Newbie question
I made a mistake when making my first app. I did not use the: ruby script/generate model <modelname> method for creating my models. I more or less hand crafted each og them. Is there a way to go back so I get my db migration scripts to populate? -- Posted via http://www.ruby-forum.com/.
2017 Jun 12
2
plotting gamm results in lattice
Dear all,? I hope that you can help me on this. I have been struggling to figure this out but I haven't found any solution. I am running a generalised mixed effect model, gamm4, for an ecology project. Below is the code for the model: model<-gamm4(LIFE.OE_spring~s(Q95, by=super.end.group)+Year+Hms_Rsctned+Hms_Poaching+X.broadleaved_woodland? ? ? ? ? ? ?+X.urban.suburban+X.CapWks,
2007 Jan 23
3
Login and logout scripts
Is there a way to run a script on my samba PDC machine when a user logs in and logs out? Thanks in advance. -- Air conditioners and Computers are the same - they both crash when you open Windows.
2006 Apr 15
6
Good image API for RoR?
Hi, I need a relatively simple image api for the app I''m writing. I need to copy photos, rename them, and re-size them to put them in a standard format. I tried using RMagick/Imagemagick, but the photos would be corrupted on re-size, so I''m looking for some suggestions. -- Posted via http://www.ruby-forum.com/.
2006 Jun 22
2
RoR Event Calendar
Does anyone know of a good open source event calendar done in RoR? -- Posted via http://www.ruby-forum.com/.
2006 May 08
2
Noob Question - Variable Scope
I feel awful asking such a basic question, but here it goes.... I have a controller, "NewsController". The user enters and the "list" action is called and I populate an instance variable "@news" which contains all the elements I''d like to display using a form. The user then changes something and the "update" action is called. Is
2006 May 08
3
Expansion module
Hello All, Does anyone know of an expansion module (keypad extension for attendant) that works with the gxp-2000? - Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20060508/f49a24e3/attachment.htm