Fixed up new post form

added a cancel button
This commit is contained in:
2013-01-21 19:10:48 -05:00
parent c75da12d94
commit 1887288f5b
7 changed files with 32 additions and 38 deletions

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