Rails with Flex

Hi everyone
   I am doing a project in which i am using adobe flex front end rails
as back end support.
I am not getting how to perform search on mysql database using rails
and displaying the result with flex front end. I did google search and
came across mysql full text search and ferret plugin.
but i am not getting the exact way to implement.
My database consists of records about videos somewhat like youtube
videos which also consists of tags.

any kind of suggestion regarding this will be appreciated.

Mukesh sahu