Torquebox and Cygwin don’t work as nicely together as one might hope. That said, here are a couple of findings: In order to deploy, you need to set the $JBOSS_HOME with the Windows path. You can do this via export JBOSS_PATH=cygpath -w PATH_TO_JBOSS. Additionally, the JRUBY_HOME needs to be a windows path as well. Otherwise …
Category Archive: rails
Mar 02
Rails & JRuby in a Jar
This is a discussion of what I needed to do to put rails and JRuby together in a single jar.
Sep 05
Converting a rails app from 1.2.6 to 2.1
This is the first in a series(???) of posts detailing things that I’ve found in the process of updating rails (and other plugins/gems) for an application. Due to politics, it’s using JRuby, running inside a JBoss container, with a Derby backend. Things which are getting updated include: Rails ActiveRecord-JDBC ActiveScaffold ActiveScaffoldExport Goldspike is being replaced …
Aug 25
Rails Project Setup Script
I got tired of typing the same commands all the time and/or looking up urls for plugins. Hence this script…. Yes, I know it’s been done before, but this does what I want (for now; I’m sure I’ll edit it). It does the following: Creates rails instance (optionally setting the database, etc.) Installs rspec & …
Aug 19
rspec, restful_authentication, and login_required
This is partly for myself, and partly for anyone after me….. I have a controller generated via rspec_scaffold — yes, I know, it might not be what all the cool kids are doing, but it works. I also have restful_authentication set up to use rspec. So, when I go to add before_filter :login_required, autotest frowns …
Aug 19
autotest reminder (or why did it go boom?)
autotest / zentest are really useful tools. However, it’s important to remember to run migrations for the test database — otherwise your tests will fail (miserably!) I’ve found the following to be helpful for using autotest: Getting started with Autotest – Continuous Testing Autotest RSpec Notifications for Ubuntu « My Pragmatig life
Aug 12
O_RLY? A Ruby/Rails implementation of snowl (Part I)
Recently Mozilla Labs released a prototype of snowl, a rss/atom/twitter feed reader. It is a firefox plugin and provides two views of messages — a “traditional” message view, as well as a “river of news“. I thought that this could be easily “redone” as a rails application. The rest of this article steps through the …