Metaprogramming of controller methods

Hello everyone,

my rails project parses a text file during the starting of mongrel and
creates a structure of ruby classes, methods and objects out of it.

I then create a form with text_field_with_auto_completion dynamically
from these objects (auto_completion plugin). Now I need to have one
auto_complete_for method for each of these fields in the controller.

But how can I write these methods (depending on ruby objects)
dynamically during the mongrel start into the controller or make them
accessible in it?