README.rdoc in property_sets-0.3.0 vs README.rdoc in property_sets-0.3.2
- old
+ new
@@ -61,15 +61,15 @@
The above will not update +featured+ as this has the protected flag set and is hence protected from
mass updates.
=== View helpers
-We support a single convenience mechanism for building forms and putting the values into the above hash structure. So far, we only support check boxes:
+We support a couple of convenience mechanisms for building forms and putting the values into the above hash structure. So far, only support check boxes and radio buttons:
<% form_for(:account, :html => { :method => :put }) do |f| %>
- <h3>
- <%= f.property_set(:settings).check_box :activated %> Activated?
- </h3>
+ <h3><%= f.property_set(:settings).check_box :activated %> Activated?</h3>
+ <h3><%= f.property_set(:settings).radio_button :hot, "yes" %> Hot</h3>
+ <h3><%= f.property_set(:settings).radio_button :not, "no" %> Not</h3>
<% end %>
== Installation
Install the gem in your rails project by putting it in your Gemfile:
\ No newline at end of file