MonoRail: Accessing built-in helpers from a custom helper
MonoRail comes with a number of "helpers" that assist you in generating views for your controller's actions. Some examples are: FormHelper, which helps you build HTML forms; URLHelper, which helps you build links to other controllers and actions;= and AjaxHelper, which helps with Ajax calls.
You can also build your own helpers by inheritng from MonoRail's AbstractHelper. Sometimes, it may be handy to use one of the existing helpers inside your own helper. To do this, you can access the Helpers dictionary off the Controller. If you wanted to use MonoRail's FormHelper, you could do the following:
FormHelper fh = (FormHelper)Controller.Helpers["FormHelper"];
Pretty handy!
Technorati tags: MonoRail