Metaprogramming of controller methods

Indra M.
Tue, 03 Jun 2008 09:41:56 -0000

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?
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---