search for: billing_info

Displaying 2 results from an estimated 2 matches for "billing_info".

2008 Mar 19
2
Stub / Mock - A little guidance?
...tance method that is available to a User object. The method takes an OrderPaymentInfo object and copies its attributes onto the User''s attributes (Ignore the clunky design... that''s just how it has to be). The User''s instance method looks like so: class User def update_billing_info(billing_info) unless self.has_billing_address? self.bill_to_address1 = billing_info.address1 self.bill_to_address2 = billing_info.address2 self.bill_to_address3 = billing_info.address3 self.bill_to_city = billing_info.city...
2009 Mar 31
3
serving xml
Hi All, I''m trying to serve some XML from my Rails 2.0 server. I have a Flash file that always reads its configuration from /home/gallery.xml So, I would like to build the contents from the database and serve it back to the flash file when it hits my xml url. If it was HTML that it was asking for then in my home controller I have a gallery method that serves back a gallery.html.erb