From: Intransition Date: 2011-08-11T00:59:53+09:00 Subject: Re: Passing multiple parameters On Aug 10, 11:10 am, Avantec Van wrote: > Hi, > >   I have a method & i wanna pass around 25 parameters to it and i hav to > make string from that, as follows... > > def method1(email, b_day, b_month, b_year, gender, f_name, l_name, > mdl_name, title, country,  .......) > >     params = > "email=#{email}&birth_day=#{b_day}&birth_year=#{b_year}.............." > > end > > it looks very odd when passing these many parameters. Is there any other > option that I can mention only mandatory args in the method & remaining > all are in single argument or something like that? Use options hash. def method1(options) email = options[:email] b_day = options[:b_day] ...