# Active record Dynamic

**URL:** <https://www.ruby-forum.com/t/active-record-dynamic/79513>\
**Category:** Ruby\
**Created:** [December 15, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/active-record-dynamic/79513 "2006-12-15T22:00:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [December 15, 2006, 10:00pm UTC](https://www.ruby-forum.com/t/active-record-dynamic/79513/1 "2006-12-15T22:00:15Z")

</div>

Hi,

A really simple question I suppose but very busy for me:

How to cast my params[:id] (through or not a temp variable) in an  
activeRecord?

“class DatatableController \< ApplicationController  
def DTTable  
temp===params[:id]  
@records=temp.find\_all()  
@fieldnames=Tablefield.find(:all,:conditions =\>  
“tablename=‘patient’”)  
render :action =\> ‘DTTable.rxml’, :layout =\> false  
end  
end”

Thanks a lot
