Skip to main content

Best way to build a Contact Us page

Rails • Asked by Simon P

Fallback

Hi

First post so Hello World! Really enjoying this site.

I was just wondering what people consider to be the best way to build a Contact Us page.

I don't need to store the entered data, just email it to a couple of people.

I would want validation on the input.

I found this tutorial - is this broadly the correct approach?

https://www.murdo.ch/blog/build-a-contact-form-with-ruby-on-rails-part-1

Thanks

Simon


Fallback

Table-less seems like the way to go for contact forms.

The only part missing from a quick look is the set up of an Email service. I can recommend , really easy to integrate in your Rails app: https://www.mailgun.com


Fallback

Thanks, will give it a try.


Fallback

As a bonus, I highly suggest you implement a captcha. There is a gem for googles recaptcha which is easy to install. Spammers will send you junk. They still get through recaptcha but less often.


Login or create an account to join the conversation.