# How to generate external secure form for clients in Rails

**URL:** <https://www.ruby-forum.com/t/how-to-generate-external-secure-form-for-clients-in-rails/167059>\
**Category:** Rails\
**Created:** [May 3, 2009, 1:30am UTC](https://www.ruby-forum.com/t/how-to-generate-external-secure-form-for-clients-in-rails/167059 "2009-05-03T01:30:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tkbeili](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/7bcc69/32.png) [@tkbeili](https://www.ruby-forum.com/u/tkbeili)\
**Post date:** [May 3, 2009, 1:30am UTC](https://www.ruby-forum.com/t/how-to-generate-external-secure-form-for-clients-in-rails/167059/1 "2009-05-03T01:30:46Z")

</div>

Hello,

I have an application where businesses can create accounts and add  
information about their clients. I would like to be able to generate a  
form that they can put on their website so that clients can  
automatically enter their info into the business’s account. I know I  
might be able to do something like:

\<% form\_tag my\_site\_url\_with\_action do %\>  
…put here the fields for client info

But I was wondering if there is a way to make it secure by ensure that  
it’s coming from my client’s website as opposed from some spam website  
or so. Also I was wondering whats the best way to make it AJAX (with  
minimal inclusion of Rails JS for AJAX)

Any ideas?

Thanks,

Tam
