I'd like to create a couple of forms on a Refinery based CMS site. One is a contact form, and another is a variation on this contact form with a few additional fields. For this form, I've looked at the Refinery inquiry gem but I can't seem to find a way of modifying the form for the additional fields, or embedding this on multiple pages (each of which has multiple languages through the i18n gem). I also stumbled across Refinery Engines which might meet my requirements, but it hasn't been updated in quite a while, so wasn't sure whether it would work with the latest version.
Is the Generators gem still in use? Has anyone used this gem for what I'm trying to achieve or what is the Refinery way of creating custom forms?
The refinerycms-generators extension was merged into Refinery itself and there exists a form generator in there. To get the syntax, just run:
rails generate refinery:form
It will present you with the help for the generator.
This is currently your best bet for spending the least amount of effort to get forms like refinerycms-inquiries.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With