Ruby on Rails Discussions
Is it possible to pass a model name as a variable?
rubyonrails-talk
Andrew_Timberlake
(Andrew Timberlake)
January 21, 2009, 7:39am
1
Yes it will but you have a bug in your code, it should be:
def list(modl)