search for: address_line_2

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

2006 Jul 06
2
Not accepting nil values in fields when CREATING a record
.... is there an EASY way to check if a list of fields is null? Right now, I''m doing: def validate() [...] errors.add(:mailing_middle_name, "cannot be nil") if mailing_middle_name.nil? errors.add(:company, "cannot be nil") if company.nil? errors.add(:address_line_2, "cannot be nil") if address_line_2.nil? [...] end But it''s ugly. Plus, I realise that passing "nil" is a nice way NOT to specify every single value when you update a record. So... to expand my previous question, is there a way to prevent nil values when an object...
2006 Jul 30
3
ActiveRecord - Multiple Address for a single record
...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, :string t.column :addressable_id, :integer t.column...
2006 Jan 06
6
HABTM problem not saving all associations
..."=>"", "lot"=>"", "zip_plus_4"=>"", "address_line_1"=>"dfsdfsdf", "other_information"=>"", "coborrower_last_name"=>"", "loan_amount"=>"", "address_line_2"=>"fddssdf", "order_state_id"=>"1", "parcel"=>"", "builder_phone"=>"", "state"=>"", "loan_id_1"=>"", "year_built"=>""}, "action"=>...
2006 Aug 15
5
Ferret Segmentation Faults
Hi, I am getting a number of segmentation faults using Ferret 0.9.5, Fedora Core 5 and Ruby 1.8.4 I installed it with the recommended gem install ferret and example segmentation fault creation line would be as follows: @records = FerretConfig::INDEX.search("address_line_2:\"Dumbarton\"") I am also using acts_as_ferret and rails 1.15 but think this is an issue with ferret. Any ideas? Cheers, Alastair -- Posted via http://www.ruby-forum.com/.
2006 Jun 19
3
Parent Child form using Partials
...> <%= 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'' %></p> <p><label for="address_city">City</label><br/> <%= text_field ''address'', ''city'' %></p&...