For small jobs like tiny webservices, I don’t want bother Ruby On Rails. Instead I used to pick php to build a quick restful web service. Actually we call also use ruby as a cgi platform to do the same job. as described in book.
One thing different for shared host user is, we can’t modify httpd file directly, instead, should use .htaccess as dreamhost wiki said.
Another problem is, how to set those environment variables, e.g. RUBYOPT, GEM_HOME, to load developer installed gem package?
Here is another post for how to achieve this by tweeting cgi, a bit of messy, but it works. Still don’t how to do it in cgi, (might need to change dispatch.cgi somewhere) but for eruby, create a shell wrapper for eruby.cgi to pre-set environment variables is quite easy.
Update: running into gem not load in eruby issue on a new VPS. couldn’t figure out why, just did a simple gem update. problem solved.
gem/rubygems version before update was 1.3.7
Maybe should also run a gem update –system in case.