From: Craig Date: 2005-11-28T10:27:28+09:00 Subject: Rails Web Service: Convert Parameter to Class Method Call? I'm trying to write a method for a web service that will find objects from a user specified table, i.e. find all Widgets added in last 7 days, or find all Whatsits whose name starts with Q. I could right a separate method for each table calling i.e. Widget.find() or Whatsit.find(), but what I'd like to do is have a single interface that lets me call something like user_specified_table.find() where user_specified_table is a string equal to either Widget or Whatsit. How can I do this? Is there an entirely different way of doing this that I should be looking at?