browsermedia/browsercms — Issue #448: BrowserCMS should be a Mountable Engine
Author: peakpg
Created: 2011-10-13 18:53:09+00:00
State: open

Rails 3.1 very specifically defines how mountable engines work, and provides a lot of support for easily namespacing models/controllers, as well as an easily testable application.

The interface for adding BrowserCMS will still be the same:

1. Add browsercms to your gem file
2. Add it to your routes file.

The latter can be accomplished by something slightly closer to the Rails 3.1 convention of `mount Cms::Engine => /cms, :as =>"cms`"

```
# In config/routes.rb
# Adding all BrowserCMS routes in 3.4
mount_browsercms

# This also works, but is deprecated.
routes_for_browser_cms
```