Fdbq::Rails
A Rails integration of @softserveopensource/fdbq with an ORM recording of submits.
Installation
Terminal
gem install fdbq-rails
Gemfile
gem 'fdbq-rails'
Rails
Generate configuration files
rails g fdbq:rails:install
Mount into your application
- update
config/routes.rbwithmount Fdbq::Rails::Engine, at: '<your path>'
Update configuration for fton-end
- update
config/fdbq.ymlconfiguration file
Usage
Aadd to your layout or view plugin
fdbq_render
To fetch list of submitted responses use
-
fdbq_responseshelper that works within controller, helper or view. or -
Fdbq::Feedback.allto query directly thru ActiveRecord model.
Contributing
- fork it
- commit
- submit PR
TODO
- Add MongoDB support
License
The gem is available as open source under the terms of the MIT License.