search for: address_1

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

Did you mean: address1
2007 Dec 01
0
mock feed
...ich takes an address and with a callback on save and update passes the address to google''s geocoding service. The returned XML is parsed and saved to the address object: protected def geocode_address key = "mykey" url = "http://maps.google.com/maps/geo?q=#{self.address_1.gsub('' '', ''+'')},+#{self.postcode},+FRANCE&output=xml&key=#{key}" doc = Hpricot.XML(Iconv.iconv("UTF-8", "ISO-8859-2", open(URI.escape (url)).read).to_s) section = (doc/"Placemark").first self.lat, self.lng =...
2008 Jul 07
0
ActiveRecord in Rails 2.1.0 misbehaving for Aggregate Attr.
...odel to false. N Specific use-case: I have an Account model that shadows the accounts table in database. This account object contains a composite object (amongst others) called BillingAddress defined within the Account model class as follows: composed_of :billing_address, :mapping => [%w(address_1 address_1), %w(address_2 address_2), %w(address_3 address_3), %w(city city), %w(state state), %w(zip zip), %w(card_country country)] do |params| BillingAddress.new params end To test this theory, in the Rails Console, I "found" and exi...
2007 Nov 07
5
Unexplainable failure...at least for me
...Address.new => #<Address:0x24c6420 @new_record=true, @attributes={"city"=>nil, "latitude"=>nil, "region_code"=>nil, "province_id"=>nil, "country_id"=>nil, "location_type"=>nil, "location_id"=>nil, "address_1"=>nil, "address_2"=>nil, "longitude"=>nil, "address_3"=>nil, "address_4"=>nil}> >> a.country_id = 1 => 1 >> a.country.name => "Canada" >> a.province_id = 1 => 1 >> a.full_address => ",,...
2006 Feb 27
6
One to Many example... please!
...table of CV''s and each CV can have multiple skills. Skills are in a 2nd table below; CREATE TABLE cvs( id INT not null AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(30) not null, family_name VARCHAR(30) not null, email VARCHAR(200) not null, telephone varchar(20) not null, address_1 varchar(30) not null, city varchar(30) not null, county varchar(30) not null, post_code varchar(9) not null, created_on timestamp(14) not null, updated_on timestamp(14) not null ); CREATE TABLE skills( id INT not null AUTO_INCREMENT PRIMARY KEY, title VARCHAR(20) not null, detail V...
2008 Jan 29
0
ActionMailer calling shared methods
...39;' for #<ActionView::Base:0x324b230> Here is the relevant block of code from the email template <% address = if @order.address.is_foreign wgg_replace_crlf(@order.address.foreign_address) else "#{@order.address.addressee}<br />" + "#{@order.address.address_1}<br />" + (@order.address.address_2.blank? ? '''' : "# {@order.address.address_2}<br />") + "#{@order.address.city}, #{@order.address.state} # {@order.address.zip_code}" + (@order.address.plus_four.blank? ? '''' : &quo...