Counting downloads

I have the following HAML code:

%a{‘id’ => download_file_a, ‘href’ => ‘/doc/marketing/’}

What is the best way to detect (on the rails server) that the user
clicked on the link for this download? Javascript sending some event to
the server?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs