From: Alen Alen Date: 2011-09-27T01:27:18+09:00 Subject: Re: Arrays and choose one Thanks both of you!! Let me check what I can do. As the beginning way I did this: The view (I have to choose one) ============================================ ============================================= The Controller ======================================== def method @audi=['audi 1','audi 2','audi 3','audi 4'] @bmw=['bmw 1','bmw 2','bmw 3','bmw 4'] @dodge=['dodge 1','dodge 2','dodge 3','dodge 4'] @nissan=['nissan 1','nissan 2','nissan 3','nissan 4'] @renault=['renault 1','renault 2','renault 3','renault 4'] @submarca=Array.new() case params[:select] when "audi" @submarca= @audi when "bmw" @submarca=@bmw when "dodge" @submarca= @dodge when "nissan" @submarca=@nissan when "renault" @submarca= @renault end puts "submarca" + @submarca.to_s end ======================================== this works when I choose "audi" and the console (cmd) show me only the array of audi. Now the problem, I want the array ['audi 1','audi 2','audi 3','audi 4'] show on the same page (view) as a drop list So Id did this same page of view ===================================== <%unless @anothermethod.nil?%>

The cars: