Is there a way to insert a null or blank value to the top of this array so that there is a blank value for the first value in the combo box ???? <p><label for="ediop_server1">Server1</label> <%= select(''ediop'', ''server1'', Servers.find_all.collect {|server| server.server}) %> -- sween "Force Feedback Computing Since 1984" http://www.modelm.org http://www.clubpacswestmi.net/sweeney/ http://www.clubpacswestmi.net _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
On 9/2/05, Ron Sweeney <ron.sweeney-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Is there a way to insert a null or blank value to the top of this array so > that there is a blank value for the first value in the combo box ???? > > <p><label for="ediop_server1">Server1</label> > <%= select(''ediop'', ''server1'', Servers.find_all.collect {|server| > server.server}) %>This is according to the api docs: <%= select(''ediop'', ''server1'', Servers.find_all.collect {|server|> server.server}, { :include_blank = true }) %>