Components and rails

Hi,

Components are really great in rails for making some needed components.
But I wish to configure those components in three ways. Global
configuration in enviourment.rb, controller specific configuration and
when calling controllers to render, I wish to give some config vars. I
can figure out the last one by using helper, but I don’t know how I can
do global configuration and controller specific configuration, can
someone help me with that? Beside that, isn’t there a way to use init.rb
like its possible with plugins? I wish to extend formbuilder and add
some custom code to activerecord (for automatic file upload on saving).

thnx in advance…