From: "Y. NOBUOKA" Date: 2010-10-09T00:47:12+09:00 Subject: Re: each_with_index >> You don't need each_with_index for that. You have the list of articles >> in @array_of_splits, so you just use [] to get the correct article: >> >> choice = gets.to_i - 1 # the array starts at 0 >> @array_of_splits[choice] # returns the Article, show the fields you want >> >> Jesus. > > Yes, but it returns me #, not a title and a text! The Article object should have a title and a text. A way to get a title is : choice = gets.to_i - 1 # the array starts at 0 article = @array_of_splits[choice] # returns the Article, show the fields you want title = article.title In the similar way, a text can be acquired. But we don't know a name of an Article object's method to obtain a text. You should know the name of the method. Regards, -- NOBUOKA Yuya