Commit 00d28d71

mo k <mo@mokhan.ca>
2012-06-12 13:22:18
add description to the application layout and render the creation description on the creation#show page.
1 parent f6ace8f
Changed files (2)
app
app/views/creations/show.html.erb
@@ -1,4 +1,5 @@
 <% provide(:title, "#{@creation.name} by #{@creation.user.name}") -%>
+<% provide(:description, "#{@creation.story}") -%>
 <div class="page-header">
   <h1>
     <%= @creation.name %> 
app/views/layouts/application.html.erb
@@ -5,6 +5,7 @@
     <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
     <meta name="google-site-verification" content="X9sZ3dovM2s1pJg68Bb0q1oRqqiJYdzAwGeaGlOy6PM" />
+    <meta http-equiv="description" content="<%= yield(:description) %>" />
     <title><%= full_title(yield(:title)) %></title>
     <%= stylesheet_link_tag :application %>
     <style type="text/css">