What is it?
Sinatra ruby server implementing QBWC callbacks in < 75 LOC
Introduction
I've blogged extensively on QuickBooks integration in Rails.
The short story is that working with ActionWebService sucks.
mini-qbwc is an experiment in simplicity and non-suckiness.
Prerequisites
- Sinatra
- Hpricot
- fast_xs
Setup
1) Install prerequisites
$ sudo gem install sinatra hpricot fast_xs
2) Clone project
$ git clone git://github.com/zackchandler/qbwc-mini.git
3) Start server
$ ruby qbwc.rb
4) Install app.qwc in QBWC and run sync

Coming home to Merb
The highlight of RailsConf 2007 for me was discovering Merb on the plane ride up to Portland.
I remember reading the router code and thinking, wow, I can understand this (as opposed to alias_method_chain madness of Rails)! I wrote a sample app and enjoyed playing with this new framework.
Fast-forward to today and my life has been mainly consumed with my startup which is written in Rails. I love Rails but I've had the Merb itch ever since...
Luckily a recent micro app allowed me to reacquaint myself with Merb.
Here are a few notes I made while deploying a merb app to Debian Etch using Capistrano and Passenger.
Apache & Passenger
$ sudo apt-get install apache2 apache2-prefork-dev
$ sudo gem install passenger
$ sudo passenger-install-apache2-module
Add to /etc/apache2/apache2.config
LoadModule passenger_module /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3/ext/apache2/mod_passenger.so
PassengerRoot /usr/lib/ruby/gems/1.8/gems/passenger-2.0.3
PassengerRuby /usr/bin/ruby1.8
Create /etc/apache2/sites-available/myproject
<VirtualHost *:80>
ServerName www.myproject.com
DocumentRoot /var/www/apps/myproject/current
</VirtualHost>
Enable site
$ sudo a2ensite myproject
$ sudo /etc/init.d/apache2 restart
Capistrano
deploy.rb
$ sudo deploy
Other details
I installed all gems locally for the app like:
$ gem install -i gems/ merb-core --no-ri --no-rdoc
$ gem install -i gems/ rest-client --no-ri --no-rdoc
...
config.ru
That's it. Passenger was super easy to install and configure.
Thanks to Ezra for hacking up Merb way back when and to all the core team for making Merb a very viable and solid framework.

All Articles
-
jQuery CRUD deletion patterns
07/22/08 -
Hacking with the master
07/22/08 2 comments -
Rails migrations for large text columns
05/24/08 1 comment -
Nathan Walker Chandler
05/10/08 1 comment -
acts_as_quickbooks_model
05/02/08 -
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
