Displaying 4 results from an estimated 4 matches for "project_product".
Did you mean:
project_products
2006 Jan 03
0
data modelling
...te a new project
(what''s in a name?). To which I copy contact info, (sub)products like
mailbox, hostname webspace. etc. And I want to log my hours into a project as
well.
I came up with the following prelimenary tables (models if you will)
Project
has_many: Project_Contacts
has_many: Project_Products
has_many: Project_Time_items
Project_Contacts
(records wil be copied from the normal Contacts table)
Project_Products
(a shopping cart like setup to gather all sub products and copy them in from
Products)
Project_Time_items
(A table with records on what time was spent on what)
Note: Records...
2006 Jan 06
2
IRB hex values
...y_id order by t1.name'')
@project_contacts = @contacts_list.collect { |c| [ c.name + " - " +
c.firstname + " " + c.lastname, c.id ] }
render_action ''edit_project''
-- Models:
class Project < ActiveRecord::Base
has_one :project_contact
has_many :project_products
end
class ProjectContact < ActiveRecord::Base
belongs_to :project
end
class ProjectProduct < ActiveRecord::Base
belongs_to :project
end
--
"Who cares if it doesn''t do anything? It was made with our new
Triple-Iso-Bifurcated-Krypton-Gate-MOS process ..."
My $Grtz =~ Ge...
2006 Jan 10
8
Noob: Child records not saved
Hi all,
happily coding along, but it seems a belongs_to record is not saved.
# Create some stuff
def create_project
@contact = Contact.new
@project = Project.new(@params[''project''])
@project_contact = ProjectContact.new(@params[''collect''])
@project.project_contact = @project_contact
contact =
2006 Jan 09
2
catch id from form and copy between objects
Hi all,
Not completely sure what I''m doing, but I need to get data from another table
based on and id. Below is some breakpointer output:
irb> @params
=> {"project"=>{"project_description"=>"point2", "project_name"=>"break2"},
"action"=>"create_project",