Fixed up new post form
added a cancel button
This commit is contained in:
@@ -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