Fixed up new post form

added a cancel button
This commit is contained in:
ricky committed 2013-01-21 19:10:48 -05:00
1 parent c75da12d94
commit 1887288f5b
7 files changed
+32 -38

No files matched your search

+5
View File
@@ -1,3 +1,8 @@
module ApplicationHelper
def cancel_link
return link_to 'Cancel', request.env["HTTP_REFERER"],
:confirm => 'Are you sure? Any changes will be lost.'
end
end