Project

phaseout

0.0
No commit activity in last 3 years
No release in over 3 years
SEO Tags Management for Rails
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

Phaseout

Unstable, don't use it yet!

We are drafting our API, so no tests where written yet, and everything can break or can be broken on this repository.

Installation

Add this line to your application's Gemfile:

source 'https://rails-assets.org'

gem 'phaseout'
gem 'rails-assets-underscore'

And then execute:

$ bundle

Or install it yourself as:

$ gem install phaseout

Usage

Config Redis storage at some initializer:

Phaseout.redis = Redis.new redis_config

Maybe it will be something like that on controllers:

seo_tags_for :show, key: 'product/:@product.slug', as: 'Product @product.humanized_full_name' do |seo|
  seo.meta_keywords{ some_method_from_controller }
  seo.og_url "raw_og_url"
  seo.any_helper "with it's", "arguments"
end

On views, just add this:

<%= seo_tags %>

On routes, add something like that:

mount Phaseout::Engine => 'seo'

And if something doesn't work, remember what I said: "UNSTABLE, DON'T USE IT YET!".

And we will be glad to hear opinions and even more happier to receive pull requests!

Contributing

  1. Fork it ( https://github.com/akidog/phaseout/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request