Custom routing for Refinery CMS
Latest commit 6de203b Jun 15, 2011 @unixcharles Merge pull request #1 from micho/patch-1
Edited via GitHub
Failed to load latest commit information.
app Add sitemap support Jun 14, 2011
config Initial commit Jun 14, 2011
db Initial commit Jun 14, 2011
features Improve feature/spec Jun 14, 2011
lib Fix has_many :routes on page Jun 14, 2011
spec/models Improve feature/spec Jun 14, 2011
.gitignore Initial commit Jun 14, 2011 Edited via GitHub Jun 14, 2011
refinerycms-routes.gemspec Bump 1.0.3 Jun 14, 2011

Copywriting engine for Refinery CMS

Do you want to move your website to Refinery CMS, but your SEO guy doesn't like the idea of losing control of URLs?

Create your own custom routes for fine grained rules! Take the control of URLs and redirect legacy URLs.


# Gemfile
gem 'refinerycms-routes'

rails generate refinerycms_routes
rake db:migrate

This is going to create routes for the current locale and create a default page controller that use custom routes.

Pull request?


Helper method


or pass locale instead of using current globalize locale

custom_url_for(@page, :en)

Return first matching Route or fallback to default @page.url method