electronick/enum_column — Issue #8: enum_select error
Author: emkman
Created: 2012-01-06 04:36:29+00:00
State: open

I added enum_column3 to my gemfile for a rails 3.01 project, installed it with bundler, and created and ran a migration. I confirmed in the rails console that the column was created as expected. Here is the error output:

undefined local variable or method `enum' for #
Extracted source (around line #24):

21:

22:

23: <%= f.label :subject %>

24: <%= f.enum_select :subject %>
25:

I have traced it to line 34 in active_record_helper.rb:
```ruby
31: if (value = self.object.__send__(method_name.to_sym))
32: options[:selected] ||= value.to_s
33: else
34: options[:include_blank] = enums.allows_nil? if options[:include_blank].nil?
35: end
```
enums is not defined or referenced anywhere outside line 34.