<commit_before>h1. FormtasticEnum

An extension for Formtastic[1] to generate lightweight javascript calendar date inputs using the Rails Date Kit[2]

h2. Example

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
  <% end %>
<% end %></code></pre>
<commit_msg>Tweaks to README   Corrected the title   Documented the :format option<commit_after>h1. FormtasticCalendar

An extension for Formtastic[1] to generate lightweight javascript calendar date inputs using the Rails Date Kit[2]

h2. Example

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, :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>.

{'fraction_non_alphanumeric': 0.1301715438950555, 'fraction_numerical': 0.008072653884964682, 'mean_word_length': 4.767441860465116, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7098443', 'n_tokens_mistral': 336, 'n_tokens_neox': 309, 'n_words': 110}