Is it possible to pass a model name as a variable?
For example in controller there is a method like this,
var = User.find(:all)
where in var we heve collected all data from users table. If i edit the
above code like the one below, will it do the same work?
var = tab.find(:all)
tab = User
someone please help.