diff --git a/app/controllers/admin/base_controller.rb b/app/controllers/admin/base_controller.rb index 67c01ad..64c07bf 100644 --- a/app/controllers/admin/base_controller.rb +++ b/app/controllers/admin/base_controller.rb @@ -5,7 +5,7 @@ class Admin::BaseController < ApplicationController def undo_link(item) view_context.link_to('Undo this change', - admin_revert_version_path(id: item.version.last), + admin_revert_version_path(id: item.versions.last), method: :post) end end