Fixed up new post form
added a cancel button
This commit is contained in:
1 parent
c75da12d94
commit
1887288f5b
7 files changed
+32
-38
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user