Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A theme-in-a-gem for Engine Yard websites

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app
Octocat-spinner-32 example
Octocat-spinner-32 lib
Octocat-spinner-32 vendor
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 engineyard-theme.gemspec

Engine Yard Theme

A Rails gem / engine to make any Rails 3.1 app look like Provides a generator for static assets and header and footer helper methods to dress your site in the shirt and pants of the Engine Yard theme.


Add engineyard-theme to your Gemfile

gem 'engineyard-theme'


Wrap your application.html yield with the header and footer helpers:

<% # application.html.erb %>
<%= header %>
<%= yield %>
<%= footer %>

If you want to add anything within the <head></head> tags or just before the </body> tag, you can pass a block to the helpers:

<%= header do %>
  <%= stylesheet_link_tag 'additional_styles' %>
<% end %>
<%= yield %>
<%= footer do %>
  <!--  this comment only appears on my sub-site -->
<% end %>

Default navigation links and default web service javascript (Google Analytics, Optimizely, etc.) can be disabled by setting values to false:


The layout supports content overwritting by supplying defining content_for the following:

title, description, keywords, body_id, branding

Modifying / Testing

Inside this repo is a example folder, containing a Rails 3.1 app configured to load the gem. You can use this to add any changes in styles. You can also run:

bundle exec cucumber features

...within that folder to test the gem as though it was installed in a Rails app, so that you know it still works.


Copyright (c) 2011 Engine Yard Inc. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.