view app/views/pastes/create.txt.erb @ 110:e8c632b0eb80

Check if current location is a show paste before triggering tabs js.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 12:31:43 +0700
parents f7b7a39fb48c
children d310a716207b
line wrap: on
line source

<% unless @paste.errors.any? %>
<%= paste_path @paste, :only_path => false %>
<% else %>
Failed
<% end %>