Path: | lib/samples/contextual_form.rb |
Last Update: | Thu Apr 30 15:03:52 -0500 2009 |
Create a new Context
Form | = | ArsModels::Form.context_instance(AdminContext) | Create a new ArsModeld::Form class with the default context set | |
MessageForm | = | Form.find('KLINK_MessageForm') | Use the previously created class to find a form without explicitly passing the context |