Active record Dynamic

D

dartruk

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,220
Messages
2,571,128
Members
47,744
Latest member
FrederickM

Latest Threads

Top