I am currently developing a cms and want to reuse the functionality in other projects.
Check out Rails Engines.
Its awesome to share code between your applications. you can sort of make your application into a plugin itself
Try this railscast as well, Ryan bates explains it nicely