Displaying 7 results from an estimated 7 matches for "throughassoci".
2006 Apr 03
1
:through causes White Screen of Death
i''m trying to get :through associations working per the wiki:
http://wiki.rubyonrails.com/rails/pages/ThroughAssociations
i follow the instruction to the t, with the exception that i''m trying to use it
with a polymorphic association. here are the associations in my models:
Collection has_many :collectings
Collection has_many :collectables, :through => collectings
Collecting belongs_to :collection...
2006 Apr 20
2
Additional Fields in a Join Table
Hi,
I am creating an order management web application, and have run into an
issue over join tables. I am reading Agile Web Development and it says
that I can put additional fields within my join tables, and they give
the example of a date field.
I want to know if it is possible to do the following:
I have an orders table with the order information as well as an
orders_items table and an
2007 Oct 18
0
Getting the through items from a has_many :through :uniq relationship
...t''d mention data_objects that link any taxon with the specific toxin.
A few other people have asked this question, including in the comments
section of http://blog.hasmanythrough.com/2006/4/20/many-to-many-dance-off
and "Please clarify" in http://wiki.rubyonrails.org/rails/pages/ThroughAssociations
. There have been some attempts to reply, but they haven''t really
answered the question.
Is there currently a better way to find the join model objects?
Thanks,
Andrew Grimm
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribe...
2006 May 11
1
ActiveRecord collection_select and has_and_belongs_to_many
Hello everyone, first post to the list and a relative newbie to Rails
development. Done quite a bit of JSP, PHP, HTML, XML etc and thought I would
kick the tires on Rails to see if it can speed up development for internal
applications. Anyway, I am running into a problem that is just driving me
crazy and everything I read on the net doesn''t seem to help. I was hoping
someone here might
2006 Jul 05
7
HABTM join table has an "ID" column - is this an issue?
All,
I''m building model objects for existing tables that I cannot modify.
In AWDWR, Dave says "Note that our join table has no id column...The
second reason for not including an id column in the join table is that
AR automatically includes all columns from the join tables when
accessing rows using it. If the join table included a column called id,
its id would overwrite the id
2006 Aug 04
8
I need an idea !
Hello here, I need to find an idea to solve a problem
I manage Events which are of kind :arrival or :departure
At first the two kind of events was unrelated but my client want to see
the :departure belonging to the :arrival and vice versa.
I''m searching for a solution to implement this ''link''. I''ve thought
about an integer column containing an uniq id for
2006 Apr 18
6
Linking one model to another
I have a User model and a Thing model. I want to link users with
things, so I have a migration that creates a permissions table with
user_id and thing_id. The migration works fine and gives me three
columns, I assume I need the permission''s ID so that I can delete it in
future.
Three questions come to mind though, which I have given thought but got
nowhere.
1) Does the