PR :: PublicRelations
PR is a gem for handling user input with forms. The idea is to decouple
the logic of handling user input, the process of parsing what is
essentially raw string data into valid Ruby data, (via 'typecasting/parsing'
and validation), from the buisness logic and persistance of an application.
I am building it with the principle of seperating concerns and not mixing things into the form objects as much as possible, I'd like the library to be usuable without any mixins, but will also provide mixinable macros for ease of usage.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install mongo_adaptor
will require the form helper macros, field definitions and if
defined require the
ActiveForm helper macro which allows the inclusion
ActiveModel compliance into the forms you define.
You can also manually require the 3 main elements as you desire.
Work in progress.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)