Find file
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (17 sloc) 726 Bytes

Copywriting engine for Refinery CMS

You want to move your website to Refinery CMS, but the SEO guy don't like the idea of loosing 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