Sha256: cea76c530df1be4f2e79ccd1bd58c04fd6063db9de11c3c903b8e347439ff939
Contents?: true
Size: 985 Bytes
Versions: 4
Compression:
Stored size: 985 Bytes
Contents
# Quickstart ## Include gem * ``gem 'europeana-feedback-button'`` * run ``bundle install`` ## Require Europeana::FeedbackButton * add ```require 'europeana/feedback_button'`` to your apps config/application.rb ## Mount the engine * in config/routes.rb add: ```mount Europeana::FeedbackButton::Engine, at: "/"`` ## Add FeedbackableView to your views * add ```include Europeana::FeedbackButton::FeedbackableView``` to any view you want to have a feedback button. Add it to app/views/application_view.rb for feedback buttons on all pages. ## Set FEEDBACK_MAIL_TO * the engine only shows feedback buttons if you have a mail address configured in your .env file. * ```FEEDBACK_MAIL_TO=example@example.org``` ## optional * Include ``helper Europeana::FeedbackButton::FeedbackHelper`` in your application_controller.rb * this will allow you to acces the helper methods from the engine without haveing to explicitly reference them with ```Europeana::FeedbackButton```
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
europeana-feedback-button-0.0.5 | QUICKSTART.md |
europeana-feedback-button-0.0.4 | QUICKSTART.md |
europeana-feedback-button-0.0.3 | QUICKSTART.md |
europeana-feedback-button-0.0.2 | QUICKSTART.md |