I have created a class in ApplicationHelper, but I am having multiple problems trying to use it. The class is supposed to generate the code for a form. First problem: f=CenteredForm.new results in: uninitialized constant CenteredForm Ok, that was easy. Now: f= ApplicationHelper::CenteredForm.new => and the class is instantiated. At some point I want to generate the code, based on the members of my instantiated class. but: f.generate_output() => undefined method `start_form_tag'' for #<ApplicationHelper::CenteredForm:0x3650060> so now in my class i am doing: <file:///d:/docs/ruby%20documentation/rails/api/classes/ActionView/Helpers/FormTagHelper.html#M000369>include ActionView::Helpers::FormTagHelper include ActionView::Helpers::UrlHelper and this results in => undefined method `url_for'' for nil:NilClass There''s got to be a simple way to do this, but I couldn''t figure it out in the last several hours it''s been tormenting me. Any suggestions on how to fix this would be appreciated So how can I define a class in a helper and be able to call from inside an object of that class, the same functions i can call from outside the class (link_to_remote, submit_tag etc)? bogdan _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails