README.md in enum_help-0.0.1 vs README.md in enum_help-0.0.2

- old
+ new

@@ -26,31 +26,33 @@ $ gem install enum_help ## Usage +required Rails 4.1.x + In model file: class Order < ActiveRecord::Base enum status: { "nopayment" => 0, "finished" => 1 } end You can call: order = Order.first - order.update_attribut :status, 0 + order.update_attribute :status, 0 order.status # > nopayment order.status_i18n # > nopayment or 未支付 In _form.html.erb using simple form: <%= f.input :status %> -will generate select field with translations. +This will generate select field with translations automaticlly. -other arguments for simple_form are supported perfectly. +Other arguments for simple_form are supported perfectly. e.g. <%= f.input :status, prompt: 'Please select a stauts' %>