Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Tweaks to README

  Corrected the title
  Documented the :format option
  • Loading branch information...
commit a136b43fe2ff2aaf56f3647f73add1e6bf695894 1 parent 12ccd7b
@elandesign authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 README.textile
6 README.textile
@@ -1,4 +1,4 @@
-h1. FormtasticEnum
+h1. FormtasticCalendar
An extension for Formtastic[1] to generate lightweight javascript calendar date inputs using the Rails Date Kit[2]
@@ -8,10 +8,12 @@ Where Task#due_date is a :date field
<pre><code><% semantic_form_for @task do |form| %>
<% form.inputs do %>
- <%= form.input :due_date, :as => :calendar
+ <%= form.input :due_date, :as => :calendar, :format => '%d %b %Y' %>
<% end %>
<% end %></code></pre>
+:format is optional as it will default to the local default date format as defined in <code>ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS</code>.
h2. Dependencies
You must have the formtastic gem/plugin added to your application.

0 comments on commit a136b43

Please sign in to comment.
Something went wrong with that request. Please try again.