Created
November 22, 2010 17:54
-
-
Save gertig/710337 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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