Checkboxes for downloading data via activerecord

Hi Guys!

i have a set of stories stored in a database, each with an associated
unique title, and obviously an id as a primary key as follows:


Story_id —FK, integer
Topic —Unique, varchar
Story—Text


i have implemented a fuzzy search such that one can search for a story
by topic or by words in the story (acts_as_ferret did the magic!).

Now given some hits, i want people to be able to use a check-box and
select a story or stories from the hits and download them as ascii text
files using the format below.

topic1
blah blah blah

topic2
blah blahbla


how can i create a set of checkboxes each unique to a hit and can be
used to select stories to download?
Which is the easiest way to do this?

Thanks