Acts As SEO plugin

Plugin details

A SEO plugin for Ruby on Rails for help us manage the basic metatags

Websitehttp://github.com/dookie/acts_as_seo Repositorygit://github.com/dookie/acts_as_seo.git Author Bruno Azisaka Maciel Tags tag, seo LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/dookie/acts_as_seo.git

ActiveRecord
=================
Open the model that you want to add the actsasseo and add act_as_seo there, with the example:

class Page < ActiveRecord::Base
	acts_as_seo
end



ActionView
=================
To manage your tags add these fields in your forms:

< p>
	<%= f.label :metatag_title %>
	<%= f.metatag_title %>
< /p>

< p>
	<%= f.label :metatag_keywords %>
	<%= f.metatag_keywords %>
< /p>

< p>
	<%= f.label :metatag_description %>
	<%= f.metatag_description %>
< /p>


This will generate the following HTML:

< p>
	< label for="page_metatag_title">Metatag title< /label>
	< input id="page_metatag_title" name="page[metatag_title]" size="30" type="text" />
< /p>

< p>
	< label for="page_metatag_keywords">Metatag keywords< /label>
	< input id="page_metatag_keywords" name="page[metatag_keywords]" size="30" type="text" />
< /p>

< p>
	< label for="page_metatag_description">Metatag description< /label>
	< textarea cols="40" id="page_metatag_description" name="page[metatag_description]" rows="20">< /textarea>
< /p>

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago