Click here to Skip to main content
15,892,674 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
ActiveAdmin.register Link do

  member_action :scan, method: :get do 
    resource.scan_jobs #  => Resque.enqueue_at( 1.minute.from_now, resource.scan_jobs ) ?

    redirect_to  '/', notice: "Scan!"
  end

  index do 
    selectable_column
    Link.column_names.each do |field|
      column field.to_sym
    end

    actions do |resource|
      link_to 'Scan',  scan_admin_link_path(resource)
    end
  end
end
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900