Displaying 5 results from an estimated 5 matches for "address_line_1".
Did you mean:
address_line_2
2006 Jul 30
3
ActiveRecord - Multiple Address for a single record
...t way to model this. I''ve created an
address table, a set up the model as follows:
class Address < ActiveRecord::Base
belongs_to :addressable, :polymorphic =>true
end
With the table defined as:
create_table :addresses do |t|
# t.column :name, :string
t.column :address_line_1, :string, :null => false
t.column :address_line_2, :string
t.column :city, :string, :null => false
t.column :state, :string, :null => false
t.column :zipcode, :string, :null => false
t.column :country, :str...
2006 Jan 06
6
HABTM problem not saving all associations
...ot;structure_type_id"=>"1", "builder_name"=>"",
"coborrower_first_name"=>"", "subdivision"=>"", "block"=>"",
"lot"=>"", "zip_plus_4"=>"", "address_line_1"=>"dfsdfsdf",
"other_information"=>"", "coborrower_last_name"=>"",
"loan_amount"=>"", "address_line_2"=>"fddssdf", "order_state_id"=>"1",
"parcel"=>"...
2006 Aug 10
4
exporting vcards from rails
i''m doing a site for someone that has a form set up to collect contact
information from the user. i installed the vpim gem and was hoping to
give my client a way to download all of the contact''s information as a
vcard. using the examples, i was able to get it working in ruby, but i''m
not quite sure how to generate and download a vcard on the fly.
has anyone done
2006 Jun 19
3
Parent Child form using Partials
...rtial => ''addresses/form'', :collection =>
@contact.addresses %>
<!--[eoform:contact]-->
The addresses/_form partial looks like this:
<hr />
<%= error_messages_for ''address'' %>
<!--[form:address]-->
<p><label for="address_line_1">Line 1</label><br/>
<%= text_field ''address'', ''line_1'' %></p>
<p><label for="address_line_2">Line 2</label><br/>
<%= text_field ''address'', ''line_2'' %>&...
2006 Jun 01
3
more questions: human_name
One more question:
Is there some way to set the human_name of a column? e.g.: human_name
for column address1 shouldn''t be Address1 but "Address, line 1".
If not, should I make a hash with my custom names?
Best regards,
--
----------------------------------------------------------------------
Yannick Majoros http://www.inma.ucl.ac.be/~majoros
Informaticien UCL/INMA-MEMA