Module: Sipity::Forms

Defined in:
app/forms/sipity/forms.rb,
app/forms/sipity/forms/base_form.rb,
app/forms/sipity/forms/update_sip_form.rb,
app/forms/sipity/forms/create_sip_form.rb,
app/forms/sipity/forms/assign_a_doi_form.rb,
app/forms/sipity/forms/request_a_doi_form.rb,
app/forms/sipity/forms/assign_a_citation_form.rb,
app/forms/sipity/forms/create_orcid_account_placeholder_form.rb

Overview

Note:

By introducing Forms, there is less of a reliance on the anti-pattern of Strong Patterns. That is to say, only expose explicit attributes to the UI. And should the controller be the thing saying what parameters are permitted for mass assignment? Not if you intend to create command line tools.

Contains the various Forms associated with Sipity.

Forms are a class of objects that are different from models. They may represent a subset of a single model's attributes, or be a composition of multiple objects.

A form's purpose is to:

* Expose attributes
* Validate attributes

They are things that could be rendered via the `simple_form_for` view template method.

See Also:

  • Sutterer's Reform gem](http://github.com/apotonick/reform) for additional commentary and reason for separating forms from their underlying ActiveRecord classes.

Defined Under Namespace

Classes: AssignACitationForm, AssignADoiForm, BaseForm, CreateOrcidAccountPlaceholderForm, CreateSipForm, RequestADoiForm, UpdateSipForm