2009/7/3 JannaB <[email protected]>:
>
> I am creating a multiple-selection list box with :
>
>  <% form__list1 = [] %>
> <%= select_tag, options_for_select(["A","B","C","D"], selected ="A"),
> html_options = {"size" => 5, "multiple" => true}) %>
>
> I get
> wrong number of arguments (0 for 1)
> alluding to form__list1[] . How else should I specify this to not have
> this error? -Janna B

I don't know what form__list1 is for but you have missed the first
parameter for select_tag.  Also when you have an error it is worth
giving more information on the error reported.  When putting code in
an email it is best to copy and paste it if possible so as to
eliminate typos in the mail, and to ensure that the code shown is
exactly as in the app.  You may have done this of course.

Colin






>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to