README.md in enum_help-0.0.8 vs README.md in enum_help-0.0.9
- old
+ new
@@ -45,11 +45,11 @@
order.status
# > nopayment
order.status_i18n # if you have an i18n file defined as following, it will return "未支付".
# > 未支付
-In _form.html.erb using simple form:
+In _form.html.erb using simple_form:
<%= f.input :status %>
This will generate select field with translations automaticlly.
@@ -77,9 +77,18 @@
status:
finished: 完成
nopayment: 未支付
failed: 失败
destroyed: 已删除
+
+
+## Notice
+If you want to use enum feature,
+field of your table can't be named with reference.
+When it is named with 'reference' and define enum in model file, there will be raise an error as below:
+
+ NoMethodError: super: no superclass method `enum' for...
+
## Thanks
* [mrhead](https://github.com/mrhead)
* [Jin Lee](https://github.com/neojin)