Hello. I need some help with this: I have a link to open a modal window: <%= link_to instruct.instruction.name, "#myModal", :data => {:toggle => "modal", :id => instruct.id}, :class=> "openModal"%> and a coffeescript $(".modal-body #result").html $(this).data("id") Shows me the result in the html: <span id="result"></span> So far so good. But what I want is to give the value of the id to this Instruction.find( value in here) How? Thanks for advise -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/a2pRYjLVGbYJ. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.