Ruby on Rails
HowTosPlugins (Version #37)

  • The Rails Plugin Tutorial for the ActiveRecord was written because some details such as mixins were not clearly covered in other tutorials.
  • Automating Plugin Builds with Rake provides a Rake task that builds the plug-in package. It conforms to Rail’s plugin installer’s requirements for HTTP distribution of plugins, and simplifies publishing plugins on RubyForge.

Tips

(and some old stuff)

  • HowToWritePluginWithModels – You must over-ride a class function in models built in to plugins. If you include an ActiveRecord model with your plugin, read this and spare yourself some pain.
  • HowToWriteAnActsAsChickenPlugin – a basic acts_as_chicken example which does not interact with the database. This example adds a class method to a model.
  • The Rails Plugin Tutorial for the ActiveRecord was written because some details such as mixins were not clearly covered in other tutorials.
  • Automating Plugin Builds with Rake provides a Rake task that builds the plug-in package. It conforms to Rail’s plugin installer’s requirements for HTTP distribution of plugins, and simplifies publishing plugins on RubyForge.

Tips

(and some old stuff)

  • HowToWritePluginWithModels – You must over-ride a class function in models built in to plugins. If you include an ActiveRecord model with your plugin, read this and spare yourself some pain.
  • HowToWriteAnActsAsChickenPlugin – a basic acts_as_chicken example which does not interact with the database. This example adds a class method to a model.