Passing data

I need some help with this:

I have a link to open a modal window:
<%= link_to, “#myModal”, :data => {:toggle =>
“modal”, :id =>}, :class=> “openModal”%>

and a coffeescript
$(".modal-body #result").html $(this).data(“id”)

Shows me the result in the html:
So far so good.

But what I want is to give the value of the id to this
Instruction.find( value in here)


Thanks for advise