mardi 8 novembre 2016

how do add an ajax link to an ActiveAdmin view that will trigger a function

I know how to add a link to an Active Admin. Code is below to add link:

row "Has Attended Orientation" do
  link_to('Accept','#')
end

enter image description here

But my requirement is that when a user clicks on Accept, it should show a tab to select YES or NO. If user selects YES then it should trigger a function. Could anyone help me, how I can do that?

Aucun commentaire:

Enregistrer un commentaire