[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Active record Dynamic

dartruk@gmail.com

12/15/2006 8:49:00 PM

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