From: Joel VanderWerf Date: 2008-02-03T05:51:52+09:00 Subject: Re: I feel like this is a dumb question.... Chris Hickman wrote: > I am trying to call a method where the name is based on a parameter. > > For example: if sec_id = 1 I want to call template1 > if sec_id = 2 I want to call template2 ... > > Without doing if else statements, which is not reasonable for the amount > of possible sec_id's, is there a way to say something like template and > concatenate on the sec_id? to get template1, template2, template... send "template#{sec_id}" -- vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407