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)
============================================
<select name="select" size="5">
<option value="audi">Audi</option>
<option value="bmw">BMW</option>
<option value="dodge">Dodge</option>
<option value="nissan">Nissan</option>
<option value="renault">Renault</option>
</select>
=============================================

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?%>
<h2>The cars:</h2>

<select name="submarca" size="4">
<% @submarca.each do |submarca| %>
<option><%= submarca %></option>
<%end%>
====================================
But its not working?!

Can you help me out?
thanks

-- 
Posted via http://www.ruby-forum.com/.