resolve/refinerycms — pull request #1208 by ugisozols (2012-01-09 08:02:16+00:00)
Title: Refinery CMS as mountable engine

This PR allows Refinery CMS to be mounted at any path.

I heavily influenced from Spree and did take some of [their code](https://github.com/ugisozols/refinerycms/blob/master/testing/lib/refinery/testing/controller_macros/methods.rb) but I hope they won't be mad :)

Here are some of the remaining issues (which I came across/introduced myself):
* because of https://github.com/rails/rails/issues/4314 I had to [do this](https://github.com/ugisozols/refinerycms/blob/master/core/app/helpers/refinery/menu_helper.rb#L41). It's a temp fix for now as I'll keep an eye on that issue
* visiting /refinery when logged out will throw an exception. I'll try to upgrade Devise to the latest version (which currently is rc) as it has some mountable engine stuff needed to fix this issue. We can still use /refinery/login to login
* I [added](https://github.com/ugisozols/refinerycms/blob/master/pages/spec/requests/refinery/pages_spec.rb#L227) :only_path => true to some urls in specs which should not be there - will clean them later

As you see this is still a wip because the code needs some cleaning/fixing here and there but I think it's stable enough to be merged in master for now.