After upgrading to rails3.2.1,this warning occurs:
You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them
both the other answers are good and seem to work.
However if your plugin consists of a single .rb file under vendor/plugins/.../lib and the vendor/plugins/.../init.rb is just a
require 'pluginname'
Then you can simply copy the single file to your lib directory and add a file to config/initializers that does a require 'yourpluginname'
Here is a concrete example using the acts_as_rated plugin which is not a gem yet.
copy vendor/plugins/acts_as_rated/lib/acts_as_rated.rb to lib/
create a file config/initializers/acts_as_rated.rb with the following...
require 'acts_as_rated'
delete vendor/plugins/acts_as_rated