Permalink
Browse files

README: Fix custom input example about DatePicker

  • Loading branch information...
robinst committed Jun 2, 2011
1 parent d57c054 commit 34d6e16b34e87fd437f75b9525ce27510def1f04
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.textile
View
@@ -593,9 +593,10 @@ To create your own new types of inputs from scratch:
<pre>
# f.input(:created_at, :as => :date_picker)
- class DatePicker
- def input_html_options
- super.merge(:class => "date-picker")
+ class DatePickerInput
+ include Formtastic::Inputs::Base
+ def to_html
+ # ...
end
end
</pre>

0 comments on commit 34d6e16

Please sign in to comment.