search for: street1

Displaying 5 results from an estimated 5 matches for "street1".

Did you mean: street
2006 Jun 03
8
confused about ActiveRecord relationships
...belongs_to 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> <t...
2007 Feb 04
0
Very strange observe_form problem
I am doig something 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"=&gt...
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
2007 Oct 11
0
display problem with to_csv
...39;Last Name'','''' as ''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 '...
2006 Jan 17
6
An object that initializes multiple objects?
Hi, Something that I have noticed is that every class that inherits from ActiveRecord::Base has a database table of its own. However what if I don''t want a class to have its own table, but to actually serve as a proxy to initialize other entries? For instance as an example, let''s have a form with the fields for "student name", "student id number",