view app/views/pastes/show.html.erb @ 32:59ef6698fa0d

Rescue from not unique error by redirecting to previously pasted paste.
author Edho Arief <edho@myconan.net>
date Mon, 10 Sep 2012 04:14:31 +0700
parents 81c86eb273f4
children a81fb558f954
line wrap: on
line source

<p id="notice"><%= notice %></p>

<p>
  <b>Paste:</b>
  <pre><%= @paste.paste %></pre>
</p>

<%= link_to 'Raw', paste_path(@paste, :txt) %> | <%= link_to 'New paste based on this', new_paste_path(:base => @paste.id) %> | <%= link_to 'More Paste', new_paste_path %>