SoftServeInc / fdbq-rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.rb with mount Fdbq::Rails::Engine, at: '<your path>'

Update configuration for fton-end

  • update config/fdbq.yml configuration file

Usage

Aadd to your layout or view plugin

  • fdbq_render

To fetch list of submitted responses use

  • fdbq_responses helper that works within controller, helper or view. or
  • Fdbq::Feedback.all to 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.

About

License:MIT License


Languages

Language:Ruby 87.6%Language:HTML 9.5%Language:JavaScript 1.6%Language:CSS 1.4%