Select widget in partial, can it use :index?


#1

I know I can use :index => collection_counter with text_fields, but do
they work with any version of select form helpers?

Thanks!

Ian


#2

On 2/17/06, Ian H. removed_email_address@domain.invalid wrote:

I know I can use :index => collection_counter with text_fields, but do
they work with any version of select form helpers?

Yep. It’s a little confusing at first, because it’s actually the
second set of options:
<%= select ‘object’, ‘method’, @options, {}, {‘index’ => some_counter}
%>


#3

Aha! Thank you!! The api docs are a bit sparse regarding such
things…