Skip to content

Instantly share code, notes, and snippets.

@gertig
Created November 22, 2010 17:54
Show Gist options
  • Save gertig/710337 to your computer and use it in GitHub Desktop.
Save gertig/710337 to your computer and use it in GitHub Desktop.
<p id="notice"><%= notice %></p>
<p id="show_item"><%= link_to "Email This Page to User", mailit_thepage_path(@thepage) %></p>
<p id="show_item"><%= link_to "Download This Page as a PDF", thepage_path(@thepage, :format => "pdf")%></p>
<p id="show_item">
<b>Person's Name:</b>
<%= Person.find(@thepage.person_id).name %>
</p>
<!-- Example: below is a partial that can contain whatever you would like.
You can then use a .css file to style the page to only show this
piece in the .pdf by hiding all other items on the page etc. -->
<div id="something_cool">
<%= render :partial => 'something_cool',
:locals => {:some_item => @thepage.some_items,
:thepage => @thepage} %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment