I know I can use :index => collection_counter with text_fields, but do they work with any version of select form helpers? Thanks! Ian
Wilson Bilkovich
2006-Feb-18 03:51 UTC
[Rails] select widget in partial, can it use :index?
On 2/17/06, Ian Harding <iharding@destinydata.com> 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} %>
Aha! Thank you!! The api docs are a bit sparse regarding such things.... On 2/17/06, Wilson Bilkovich <wilsonb@gmail.com> wrote:> On 2/17/06, Ian Harding <iharding@destinydata.com> 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} %> > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >