similar to: naming join models for has_many :through

Displaying 20 results from an estimated 1100 matches similar to: "naming join models for has_many :through"

2006 Jul 31
1
How to get result of following SQL Query in Ruby?
Hi, I have 2 tables as follows:- _________________ ________________ ____________ taggings | |stores | | tags | -----------------| |---------------| |------------| --tag_id | |--store_id | |tag_id | --store_id | |--store_name | |tag_name | --user_id | |---------------| |------------| -----------------| Now I want to execute
2006 May 09
3
How to transfer variables from one page to another page ?
Hi, In my application I want to tranfer a variable (store_id) from one page to next without putting it into session. How should I do this? Is there any way to transfer variable from one to other page using methods other than sesion? Thanx Prash -- Posted via http://www.ruby-forum.com/.
2006 May 27
10
Displaying Hours
Here''s an intersting one: I have a client who wants to store hours of operation of a business for their RoR web app. I came up with a solution, but I really don''t like it. I have a MySQL table that has these fields monday_start, monday_end, tuesday_start, tuesday_end, etc., all as time fields. That''s all find and dandy. The kicker is, the client wants the hours to
2003 Dec 31
1
AGI - IVR - Time Clock
I wanted to post the beginings of my latest IVR Project for an automated Time Clock software. The customer has over 300 Field Reps that call in everytime they arrive on location and whey they leave that location. This is handled by the receptionist now and she logs in them and out of there Time Clock Software. Which takes up majority of her day. The customer has requested a automated way of
2010 Aug 02
7
Complex associations
I am working on a project that has some complex table associations, and I am having a hard time declaring this association in a Model, and fear it can''t be done. Here is an example of my issue... class StoreType < ActiveRecord::Base; end class Store < ActiveRecord::Base; end class Department < ActiveRecord::Base; end class Product < ActiveRecord::Base; end A StoreType has
2006 Jun 06
6
Linking two tables using a lookup table
Hi, How do I associate two different tables which have a lookup id (table) as common. I tried the has_many :table2, :through => look_up_table in my table1 model. Any hints? Thanks, Hari -- Posted via http://www.ruby-forum.com/.
2006 Aug 16
1
Naming rights_roles join model using has_many :through and polymorphic associations
Hi. I have a couple of best practices questions regarding polymorphic associations, naming join tables and user permissions. Currently I have implemented the user authentication model from the rails recipes book. Basically it goes something like this: MODEL CLASSES: class User < ActiveRecord::Base has_and_belongs_to_many :roles end class Role < ActiveRecord::Base
2006 May 23
5
text_field_with_auto_complete
I am having some trouble using `text_field_with_auto_complete'' in Firefox. For some reason, the drop-down list is being rendered behind other table elements. Firefox (broken): http://schema.ca/broke.png Safari: http://schema.ca/safari_works.png I''m wondering if anyone is aware of this problem, and what I might be able to do to work around it? Thanks, -Mike
2006 May 26
8
What is the different between Scaffold / Controller / Model
Hi everyone I am learning RoR now and got a question. What is the different between using ruby script/generate <Table> Scaffold / Controller / Model? Thank you Victor -- Posted via http://www.ruby-forum.com/.
2006 May 25
8
Looking for AOL, MSN, Yahoo "Rails Buddies"
I''m an independent software developer that spends a fair amount of time each day working on Rails-related project. t''d be really great to meet some people to chat about rails, software development, or whatever else geeky stuff via IM! If interested, shoot me an e-mail or reply here. Personally, I''m a little apprehensive about putting all my info out there on a list
2006 May 24
12
Analog to ruby script/generate for removing generated stuff?
All, If I do ruby script/generate model blah, is there an easy way for me to remove all of that stuff that got generated? Something like: ruby script/remove model blah? If it doesn''t exist, is it coming? Thanks, Wes -- Posted via http://www.ruby-forum.com/.
2006 May 26
5
MySQL Editor
Got an easy question. What is the GUI editor used in the tutorial videos to edit the mysql database? -- -- Jason K _ = -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060526/e75e6029/attachment.html
2013 Apr 05
0
DRBD + Remus High IO load frozen
Dear all, I have installed DRBD 8.3.11 compiled from sources. However the backend block will freeze if there is high IO load. I use Remus to support high availability and checkpointing is controlled by remus for each 400ms. If I check the Iostat I got the idle CPU will decreasing extremely each checkpointing and when its reach 0% of idle cpu the local backing device will freeze and damage the
2006 May 23
5
Wierd pagination problem - Unknown options: order?
I am trying to use pagination with the order option. I am following examples I''ve seen all over the web, but I am getting an error. My code seems simple: def list @upload_pages, @uploads = paginate :uploads, :per_page => 20, :order => ''id'' end Yet I keep getting this error: ___________________________________________
2009 Apr 20
0
Major revision of plink for separate calibration IRT-based linking
An updated version of the package plink has been uploaded to CRAN. This is a major revision that now includes multidimensional models and methods. plink is a package for conducting unidimensional and multidimensional IRT-based test linking using separate calibration methods for multiple groups for single-format or mixed-format common items. The package supports sixteen IRT models and eleven
2009 Apr 20
0
Major revision of plink for separate calibration IRT-based linking
An updated version of the package plink has been uploaded to CRAN. This is a major revision that now includes multidimensional models and methods. plink is a package for conducting unidimensional and multidimensional IRT-based test linking using separate calibration methods for multiple groups for single-format or mixed-format common items. The package supports sixteen IRT models and eleven
2006 Apr 20
3
has_many :through with has_many/has_many join models
It seems that using a join model that joins with two has_many''s will fail to generate proper SQL class StudentSemesterRecord < ActiveRecord::Base belongs_to :semester has_many :discipline_records, :through => :semester end class Semester < ActiveRecord::Base has_many :student_semester_records has_many :discipline_records end class DisciplineRecord <
2006 Feb 02
3
OT O'Reilly Asterisk TFOT
I went to the Linux Solutions exhibition in Paris yesterday, visited the well stocked O'Reilly stand and saw a nice pile of Asterisk TFOT, 6 hours later there was only one left. It must say something, also it was the English version. -- Dave Cotton <dcotton@linuxautrement.com>
2006 Jul 23
4
has_many AND has_many :through ?
Hi, I am working on a scheduling app and I have a perpelextion (new word). I am wondering if the problem is my data model I have Users. Users can create Events. Users can be invited to Events created by other Users. So... user.rb class User < ActiveRecord::Base has_many :invitations # invitations to other users'' events has_many :events, :through => :invitations # all events
2003 Dec 03
0
Reprint of "The Official Samba-3 HOWTO and Reference Guide"
Hi All, I understand people have been frustrated trying to find copies of "The Official Samba-3 HOWTO and Reference Guide" edited by John Terpstra and Jelmer Vernooij. I apologize. Demand has been even greater than we anticipated and we immediately ran out of stock on the first printing. As bad luck would have it, the busy holiday printing season and a glitch at the printer delayed the