Ruby on Rails 3 can be simply installed on OpenBSD via pkg_add:
# pkg_add -v ruby-rails
However, Javascript Runtime (ex. node.js) and sqlite3-dev should also be required.
# pkg_add -v sqlite3
# pkg_add -v libexecinfo gmake python (for compiling node.js)