diff app/views/pastes/create.txt.erb @ 67:f7b7a39fb48c

Allow post in txt format pt. 2 (view and controller).
author Edho Arief <edho@myconan.net>
date Thu, 04 Oct 2012 10:20:58 +0700
parents
children d310a716207b
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/views/pastes/create.txt.erb	Thu Oct 04 10:20:58 2012 +0700
@@ -0,0 +1,5 @@
+<% unless @paste.errors.any? %>
+<%= paste_path @paste, :only_path => false %>
+<% else %>
+Failed
+<% end %>