db.
db.

Reputation: 11

undefined method grouped_options_for_select

Anyone have any idea why the following code is resulting in an "undefined method 'grouped_options_for_select' for #<ActionView::Base:0x43881ec>" error?

@user_options = [['Group 1',['User 1','User 2']],['Group 2',['User 3','User 4']]]
select_tag('ufc[proponent]',grouped_options_for_select(@user_options))

I'm about to pull my hair out, so it must be something obvious!

Upvotes: 0

Views: 687

Answers (1)

db.
db.

Reputation: 11

Nevermind. the grouped_options_for_select helper wasn't added to ActionView until Rails 2.3. I'm working with Rails 2.1.

Knew it had to be something simple!

Upvotes: 1

Related Questions