Donate Cta Feedback - FreeUKGen/MyopicVicar GitHub Wiki

Donate CTA Feedback

Part of Communication-and-Engagement.

Model: app/models/donate_cta_feedback.rb ยท Controller: app/controllers/donate_cta_feedback_controller.rb

Feedback captured from a donate call-to-action prompt. Public, write-once: create emails an acknowledgement to the submitter and a separate notification to admins, then redirects to search. No archive, no keep, no reply thread, no GitHub sync โ€” it's the simplest resource in this domain.

Fields

body, name, email_address, identifier (same seconds-since-2015 scheme as Contact/Feedback).

Worth knowing

The controller's strong params are still keyed params.require(:feedback) even though the resource is DonateCtaFeedback โ€” the form field namespace is feedback[...], not donate_cta_feedback[...]. index is an unfiltered, unpaginated DonateCtaFeedback.all.

Routes

resources :donate_cta_feedback โ€” plain CRUD, no custom routes.