All threads / Best way to build a Contact Us page

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Best way to build a Contact Us page

Simon P asked in Rails

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

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

Thanks, will give it a try.

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.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,344+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.