search for: contractor_id

Displaying 4 results from an estimated 4 matches for "contractor_id".

2010 Oct 06
2
reflect_on_association method
Hi all, I am having trouble trying to use reflect_on_association method with given the simplified model: class Order < ActiveRecord::Base belongs_to :contractor, :class_name => "BusinessUnit" end I expected the reflect_on_association method to return associated_foreign_key "contractor_id" but it returns "business_unit_id": ruby-1.9.2-p0 > Order.reflect_on_association(:contractor).association_foreign_key => "business_unit_id" do I miss something? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk...
2006 Jun 12
2
date_select() in collection
Hi, I am doing the following: <% obj.contracts.each do |@contract| -%> ... <%= hidden_field("contract[]", :contractor_id, :index => @contract.contractor.id) %> <%= date_select("contract[]", :starting_on, :index => @contract.contractor.id) %> ... <% end -%> Here are the request parameters: {"commit"=>"Save", "portfolio"=>{"starting_on(1i)&quot...
2006 Feb 07
0
complicated search/model question
...must admit I have no idea were to start on this. Thanks in advance for any help, Hugh contractor.rb has_many :jobs has_many :availabilities job.rb belongs_to :contractor availability.rb belongs_to :contactor create_table "availabilities", :force => true do |t| t.column "contractor_id", :integer t.column "day", :integer # 0-6 to match ruby wday t.column "available_from", :datetime # could be just a time field but rails doesn''t seam to play nice with time objects t.column "available_to", :datetime # could be just a time fie...
2006 Jun 14
2
rjs issue with Internet Explorer
Hi, When executing some rjs templates: page.insert_html :bottom, ''contractors'', :partial => ''contractor'' page.visual_effect :highlight, "contractor#{@contract.contractor.id}", :duration => 1 Works fine on Firefox, but nothing happens on IE. Is there any equivalent of Firebug for Internet Explorer? Are there "well-known" tips for