search for: street2

Displaying 7 results from an estimated 7 matches for "street2".

Did you mean: street
2009 Feb 26
1
composed_of, aggregate object isn't saved
...y ideas? Below is the Order class. Thanks. class Order < ActiveRecord::Base belongs_to :payment_type has_many :line_items, :dependent => :delete_all composed_of :shipping_address, :class_name => ''Address'', :mapping => [ %w(street, street), %w(street2, street2), %w(city, city), %w(state, state), %w(zip, zip) ] do |p| Address.new p[:street], p[:street2], p[:city], p[:state], p[:zip] end composed_of :billing_address, :class_name => ''Address'', :mapping => [ %w(billing_street, street),...
2013 Dec 10
2
form_tag + fields_for Rails 4
...'form-horizontal'', :method => :post do %> > <%= text_field :campus, :name %> > <%= text_area :campus, :description %> > > <%= fields_for :addresses do |b| %> > <%= b.text_field :street %> > <%= b.text_field :street2 %> > <%= b.text_field :city %> > <%= b.text_field :state %> > <%= b.text_field :zip_code %> > <% end %> > > <input type=''submit'' value=''Save'' > > <% end %> my controller &gt...
2006 Jun 03
8
confused about ActiveRecord relationships
...o and the has_one (and other relationship identifiers). I have read the RDoc and the agile book many times about this and I think i still see it backwards. Let me outline my app so you have an understanding... I have 2 tables: Schools { id, school_name, address_id } and Addresses { street1, street2, city, state, zip, country } *** this is the way that makes sense to me but it doesnt work ****** Models school.rb has_one :address address.rb belongs_to :school View for School <% for school in @schools %> <td><%= school.school_name %></td> <td><...
2007 Feb 04
0
Very strange observe_form problem
...g very simple here and this is not working correctly. So any help is greatly appreciated. I ahve this code in my template: <% form_for :company_branch, @company_branch, :html => {:id => "company_branch_form"} do |f| %> <%= f.text_field :street1 %> <%= f.text_field :street2 %> <% end %> <%= observe_form("company_branch_form", :frequency => 1) %> The params I get when the form changes is: {"company_branch_id"=>"1", "action"=>"edit", "controller"=>"admin/company_branches/detai...
2006 Apr 04
5
Database usage technique -- user-specified fields
Hello folks- In one particular app, it would be useful for the customers to be able to specify the significance (and presence) of fields. For example, consider a CONTACTs database. User 1 wants to have phone1, phone2, phone3, and User 2 wants to have 4 address fields. Generically, this could be done by having a CONTACT with, say, 10 strings, 10 integers, etc. The user''s account
2005 Oct 07
2
Some Ruby code help?
...9;S.A. de'') row = row.gsub(/de C.V./, ''de CV'') row = row.gsub(/de CV/, ''de C.V.'') row = row.gsub(/Mexico/, ''México'') row = row.gsub(/mexico/, ''México'') cname, st, county, street, street2, zip, phone, fax, email, cat, dummy, dummy2, dummy3 = row.chomp.split(/\s*\|\s*/) puts state(st, dbh) #todo: insert record... end end puts rows puts "inserted" This is a sample row (which is the one that actually gets mixed up): ARALY ALIMENTOS S.A DE C.V|JALISCO|EL...
2007 Oct 11
0
display problem with to_csv
...#39;'Suffix'',m.member_company_name as ''Company'' , `department` as ''Department'',`title` as ''Job Title'', `addr1` as ''Business Street'', `addr2` as ''Business Street1'',`addr3` as ''Business Street2'',`addr4` as ''Business Street3'', `address_city` as ''Business City'',`address_state` as ''Business State'',`address_postalcode` as ''Business Postal Code'',c.c_name as ''Business Country'' ,'''...