Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Custom routing for Refinery CMS

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 config
Octocat-spinner-32 db
Octocat-spinner-32 features
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .gitignore
Octocat-spinner-32 readme.md
Octocat-spinner-32 refinerycms-routes.gemspec
readme.md

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.

Install

# Gemfile
gem 'refinerycms-routes'

bundle
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?

Yes.

Helper method

custom_url_for(@page)

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

Something went wrong with that request. Please try again.