RailsConf – radrails

On to the next session, which was Matt Kent and Kyle Shank demonstrating their IDE radrails. I’ve been using radrails for a while, so this wasn’t new to me, but I did learn about quite a few features that I haven’t noticed before.

I made some notes so I can try them out:

  • On migration files, the right-click menu includes “Run Migration” which will migrate to that version.
  • The generators view discovers all available generators, for example if you have plugins that provide extra ones they will appear in the list.
  • radrails has a template mechanism that can be invoked with ctrl-space, like other IDEs’ macro tools. To add your own, go to Prefs. > Ruby > Editor > Templates. Templates can be exported and imported as XML for sharing.
  • ctrl-shift-f does auto-formatting of Ruby files. The rules can be changed in Prefs. > Ruby > Formatter.
  • The Ruby Browser view can be used to browse through classes in your workspace.
  • ctrl-alt-t toggles between a model or controller and the test file for that class.
  • There are toolbar buttons to run your test suite. There is also an “Autotest” setting, which can run tests when you save changes to files, or at a time interval. This can help make up for not having the compile cycle that Java developers are used to.
  • ctrl-shift-v toggles between a controller method and the view that relates to it, or can create the view page if it does not exist. The team have some improvements planned for .rhtml editing.
  • The Rake tasks view discovers available Rake tasks, which is handy because I can never remember them.
  • Log files right-click menu includes a “Tail” command.
  • You can run script/console within the IDE by pressing a toolbar button.
  • SVN integration is using the Subclipse project, which can do file comparisons etc.

The developers also talked a bit about their next plans. They are aiming to release “1.0” in November. They have seen some work in progress Ruby refactoring tools from the RDT project, and hope to integrate that, along with debugging support. It’s all shaping up to be a comprehensive tool.

Post a Comment

Your email is never published nor shared. Required fields are marked *