Archive for January, 2009

SMERF has moved to GitHub

The SMERF respository has now been moved to GitHub, so to get the latest version go here. Please note: updates will no longer be available from RubyForge.

You can easily install the plugin from GitHub by doing something like this, assuming I’m in the root directory of my Rails app: 

git clone git://github.com/springbok/smerf.git vendor/plugins/smerf

Maintenance Release Version 0.1.1

This update allows SMERF to be used with Rails 2.2 and the following changes have been made:

  • It appears that making changes directly to the view_paths array has been deprecated in Rails 2.1 onward and #append_view_path or prepend_view_path should be used instead. Template for smerf_init.rb changed to use append_view_path.
  • Dependencies is deprecated from Rails 2.2 onward and ActiveSupport::Dependencies should be used instead. Template for smerf_init.rb changed to use ActiveSupport::Dependencies.

I’ve also added the ability for the generator to skip migrations by adding the –skip-migration option. To re-run the generator without creating the migration you can do something like this:    

./script/generate smerf user --skip-migration