WARNING: Before you start writing plugins make sure you are using Rails version >= 0.14 and that your application was generated using Rails version >= 0.14.
You can check which version of rails you have by issuing the command
rails -v
You can update an old app by running the command “rails” but this may overwrite some of your application’s configuration files so be careful.
You have to restart WEBrick or lighttpd each time you make a change to the plugin. Otherwise Rails keeps running the old version of the plugin.
Or, you can include the following right after your class definition:
include Reloadable
Then, plugins will be loaded dynamically just like the rest of Rails.
—
Where do I include Reloadable when I write an acts_as plugin?
—Gabriel Birke
—
What’s changed in Rail 1.2 that might break older plugins?
—
good