Nathan Walker Chandler
May 10th, 2008
0 comments

acts_as_quickbooks_model
May 2nd, 2008
0 comments
Announcing the acts_as_quickbooks_model plugin for simplifying the parsing of qbXML messages into ActiveRecord model attributes.
Example
class Customer < ActiveRecord::Base
acts_as_quickbooks_model
end
xml = <<-XML
<CustomerRet>
<ListID>150000-933272658</ListID>
<Name>Abercrombie, Kristy</Name>
<FullName>Abercrombie, Kristy</FullName>
<FirstName>Kristy</FirstName>
<LastName>Abercrombie</LastName>`
<BillAddress>
<Addr1>Kristy Abercrombie</Addr1>
<Addr2>5647 Cypress Hill Rd</Addr2>
<City>Bayshore</City>
<State>CA</State>
<PostalCode>94326</PostalCode>
</BillAddress>
<Phone>415-555-6579</Phone>
<Email>kristy@samplename.com</Email>
</CustomerRet>
XML
customer = Customer.new(:qbxml => xml)
customer.list_id # => "150000-933272658"
customer.name # => "Abercrombie, Kristy"
...

All Articles
-
Ruby XML Parsing Benchmarks
04/23/08 5 comments -
QuickBooks Integration Plugin moves to GitHub
04/18/08 -
TrustCommerce gem moves to github
03/31/08 2 comments -
Recurring Billing with TrustCommerce
03/18/08 2 comments -
Squawk Micro - micro blogging engine
02/16/08 -
Yoga - one year later
02/16/08 -
ActionWebService with Rails 2.0
12/13/07 1 comment -
to_xml with filtering
12/09/07 -
ActiveRecord find_by shortcut
12/04/07 -
Video demo of QuickBooks integration plugin
10/17/07 -
QuickBooks Integration Plugin
10/16/07 4 comments -
Web designer needed
09/10/07 -
TrustCommerce payment history & invoicing
08/28/07 9 comments -
Perfect Rails Stack... part deux
06/14/07 3 comments -
Taking Merb for a Spin
05/31/07 5 comments -
Happy birthday
05/19/07 1 comment -
Geek of the Month
05/15/07 1 comment -
Hpricot fun
05/07/07 1 comment -
Rails and QuickBooks Online Integration - Part 1
05/03/07 1 comment -
Yoga on Rails
04/18/07 4 comments -
Avoiding scoping pitfalls
04/11/07 -
Auto-focusing Rails helpers
04/09/07 1 comment -
Quick tip - assert_toggled
03/15/07 1 comment -
Tumblring along...
03/09/07 -
Quick tip - Generating long strings for testing
03/09/07 2 comments -
Service Sidekick refresh
03/07/07 -
Auto-params plugin
03/05/07 -
TrustCommerce gem released
02/28/07 -
Working with Rails Interview
02/20/07 -
TrustCommerce Subscription plugin updated
02/09/07 7 comments -
Rails and Google Apps / Gmail Integration
02/02/07 -
Logo and site refresh
02/01/07 -
Rdoc with external resources
01/28/07 2 comments -
RESTful Product Tracker
01/19/07 8 comments -
Rails and QuickBooks integration - Part 4
12/14/06 2 comments -
Rails and QuickBooks integration - Part 3
12/13/06 6 comments -
Rails and QuickBooks integration - Part 2
12/12/06 1 comment -
Rails and QuickBooks integration - Part 1
12/07/06 4 comments -
Trackplace launches!
11/20/06 -
Quick tip - Flexible session sweeping
11/10/06 -
Quick tip - Coercing subdomains in Rails
11/06/06 -
Web design lessons from a developer
11/04/06 -
TrustCommerce Subscription plugin updated
10/31/06 -
Quick tip - Markdown with hard breaks
10/25/06 3 comments -
TrustCommerce Subscription plugin released
10/20/06 6 comments -
Service Sidekick launched!
10/09/06 -
Remote rails administration
09/08/06 -
Quick tip - Flexible filters with respond_to
09/02/06

