jeffp / enumerated_attribute

Easy enum for your models, objects and views
MIT License
190 stars 63 forks source link

WHY "...but may not be set to nil thereafter." #21

Closed woto closed 13 years ago

woto commented 13 years ago

Sorry for bad English. I want to help improve this plugin. Why so restriction? It could be more logically if there will be flag wich allow to use empty value which not dependent on action 'new' or 'edit'

woto commented 13 years ago

yeppp. We can do this in view <%= f.enum_select :job_code, :include_blank => true %>