This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Francesc Esplugas (author)
Wed Jun 18 04:59:33 -0700 2008
README
== Simplified Metatags
Adding metatags never was so easy.
== Example
##
# app/views/layous/application.html.erb
#
...
<head>
<title>...</title>
<%= metatags %>
</head>
...
##
# app/controllers/application_controller.rb
#
class ApplicationController < ActionController::Base
add_meta_description "Another Rails Application"
add_meta_keywords "flowers, holidays, marseille"
def index
end
end
##
# app/controllers/pages_controller.rb
#
class PagesController < ApplicationController
def show
@page = Page.find_by_permalink_and_status(params[:id], true)
add_meta_description @page.excerpt
add_meta_keywords @page.tags.join(", ")
end
end
Copyright (c) 2008 Francesc Esplugas Marti, released under the MIT license







