# How can I leverage Validation framework for input parameter collection when I don't have/need to per

**URL:** <https://www.ruby-forum.com/t/how-can-i-leverage-validation-framework-for-input-parameter-collection-when-i-dont-have-need-to-per/153511>\
**Category:** Rails\
**Created:** [November 18, 2008, 8:16am UTC](https://www.ruby-forum.com/t/how-can-i-leverage-validation-framework-for-input-parameter-collection-when-i-dont-have-need-to-per/153511 "2008-11-18T08:16:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![greg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/71c47a/32.png) [@greg](https://www.ruby-forum.com/u/greg)\
**Post date:** [November 18, 2008, 8:16am UTC](https://www.ruby-forum.com/t/how-can-i-leverage-validation-framework-for-input-parameter-collection-when-i-dont-have-need-to-per/153511/1 "2008-11-18T08:16:49Z")

</div>

Hi,

How can I leverage Validation framework for input parameter collection  
when I don’t have/need to persist to database (i.e. no activerecord  
table) ???

I have a set of parameters I want to collect from a form that will be  
used as input to a 2nd stage. I want to collect the parameters and  
use the Rails validations framework to assist here however how do I do  
this when I don’t have a database table? (i.e. I won’t have an active  
record model)?

Which is the most popular method for this, for example:

(a) I see there is an activerecord\_base\_without\_table plugin  
([http://agilewebdevelopment.com/plugins/activerecord\_base\_without\_table](http://agilewebdevelopment.com/plugins/activerecord_base_without_table))

- but it seems like a shame to have to jump into a plugin just to use  
the validation framework no?

(b) another I see is  
[http://rorblog.techcfl.com/2008/04/02/custom-form-validations-without-activerecord/](http://rorblog.techcfl.com/2008/04/02/custom-form-validations-without-activerecord/)  
([http://validatable.rubyforge.org/](http://validatable.rubyforge.org/))

(c) Is there a direct way to use the validation / activecontroller  
framework without needing a plugin?

Thanks
