The Gosu IntelliJ Plugin provides one of the best environments in which to do Ronin development. Here is how to set up your Ronin project in IntelliJ:

Download IntelliJ

IntelliJ is available for download here. Note that there are paid and free versions, and that the Gosu plugin and Ronin work fine in the free version. (Of course, IntelliJ is so wonderful, you really should consider paying for it, or at least convincing your boss to.)

The Gosu Plugin works on IntelliJ 11.x or later.

Install the Gosu Plugin

Once you have IntelliJ installed and running, you'll want to install the Gosu Plugin.

From the Settings → Plugins Screen, Click the Browse Repositories... Button and either search or scroll to the Gosu Plugin:

Right click on the Gosu plugin and choose Download and Install.

Restart IntelliJ and you should have the Gosu Plugin installed.

Create a Ronin Project

Ronin projects use Maven POMs to manage their dependencies. This is not because we particularly like Maven (it's a bit fascist for our tastes, but, hey, to each their own) but the dependency support and, just as importantly, the IDE support for pom.xml files is excellent.

With IntelliJ, you can open a pom.xml file as a project file, and IntelliJ will automatically create a project set up with all the dependencies taken care of for you. Follow the quick start instructions to create your project, then choose "File → Open Project" and find the POM for your Ronin application:

Choose the Gosu SDK

The next (somewhat annoying) step is to choose a Gosu SDK for the project. Don't worry about the details, just open up the project settings and choose the "Default Gosu SDK":

Ideally, you won't have to restart after this, but if you see some wonkiness it may be worth a restart.

At this point, you should have your Ronin application up and running in IntelliJ: you can navigate to your controllers package, add new ones, add new views, ctrl-click around, etc. Now we just need to set up Ronin to launch from within IntelliJ, so you can debug, etc.:

Creating The Ronin Server Configuration

Set up a new configuration by clicking the Configuration's drop down, then select "New Application":

You'll want to set up a configuration with ronin.DevServer as the main class, and you probably want to give your application some breathing room with memory: -Xmx512m

Running Your App

At this point, you can click either the Run or Debug buttons on the toolbar:

And you should see the following output:

Alright, you are good to go. Enjoy Ronin and Gosu!