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)
Related topics
Topic
Replies
Views
Activity
Is it possible to pass a model name as a variable?
rubyonrails-talk
0
125
January 21, 2009
How to pass model names?
rubyonrails-talk
3
170
April 28, 2010
Soft-coding model names?
rubyonrails-talk
4
144
July 30, 2008
variable variable
rubyonrails-talk
0
103
February 28, 2007
variable variable names... are you confused??
rubyonrails-talk
1
171
March 6, 2009