# Request for comments - database form extension

**URL:** <https://www.ruby-forum.com/t/request-for-comments-database-form-extension/83355>\
**Category:** Radiant CMS\
**Created:** [January 25, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/request-for-comments-database-form-extension/83355 "2007-01-25T15:14:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Todd\_McGrath](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@Todd\_McGrath](https://www.ruby-forum.com/u/Todd_McGrath)\
**Post date:** [January 25, 2007, 3:14pm UTC](https://www.ruby-forum.com/t/request-for-comments-database-form-extension/83355/1 "2007-01-25T15:14:04Z")

</div>

Hi,

Moving from Java EJB to Hibernate/Spring was fun. But, now after  
resisting  
Ruby/Rails for a while, I’m becoming a believer. You guys are either on  
to  
something or on something. 😉 Thank you for Radiant, it’s fun to work  
with and  
I’m learning alot from everyone.

You know, at risk of overstating the obvious, with a few tweaks the  
mailer  
extension can be turned into an extension that allows form submissions  
(with  
pre-post validation) to save to a database; e.g.

[http://pastie.caboo.se/35569](http://pastie.caboo.se/35569)

I’m wondering if anyone has comments or thoughts on the save\_form  
method? I  
don’t like how it is hardcoded to use the contacts table. Any  
thoughts/ideas  
on how to make the table more of dynamic, runtime setting? As you can  
image,  
Contact is simply:

class Contact \< ActiveRecord::Base  
end

Todd

BTW- Credit for validation is from paul.vudmaska:  
[http://lists.radiantcms.org/pipermail/radiant/2006-May/000261.html](http://lists.radiantcms.org/pipermail/radiant/2006-May/000261.html)
