Permalink
Browse files

corrected documentation on how to override a value

  • Loading branch information...
1 parent b6e580d commit e6aba2389f1ed5cc4c2f3f433793310356fe21a4 @justinfrench committed Dec 12, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/formtastic.rb
View
4 lib/formtastic.rb
@@ -88,9 +88,9 @@ class SemanticFormBuilder < ActionView::Helpers::FormBuilder
#
# <% semantic_form_for @employee do |form| %>
# <% form.inputs do -%>
- # <%= form.input :secret, :value => "Hello" %>
# <%= form.input :name, :label => "Full Name" %>
- # <%= form.input :manager_id, :as => :radio %>
+ # <%= form.input :manager, :as => :radio %>
+ # <%= form.input :secret, :as => :password, :input_html => { :value => "xxxx" } %>
# <%= form.input :hired_at, :as => :date, :label => "Date Hired" %>
# <%= form.input :phone, :required => false, :hint => "Eg: +1 555 1234" %>
# <%= form.input :email %>

0 comments on commit e6aba23

Please sign in to comment.