<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -255,13 +255,11 @@ module JustinFrench #:nodoc:
       #   f.input :author_id, :as =&gt; :select, :label_method =&gt; :label
       def select_input(method, options)
         options[:collection] ||= find_parent_objects_for_column(method)
-        options[:include_blank] ||= false
-        options[:prompt] ||= nil
 
         choices = options[:collection].map { |o|
           collection_option(o, options[:label_method] || :to_label)
         }
-        input_label(method, options) + template.select(@object_name, method, choices, {:include_blank =&gt; options[:include_blank], :prompt =&gt; options[:prompt]})
+        input_label(method, options) + template.select(@object_name, method, choices, options)
       end
       
       # Outputs a fieldset containing a legend for the label text, and an ordered list (ol) of list
@@ -438,7 +436,7 @@ module JustinFrench #:nodoc:
           else
             list_items_capture &lt;&lt; template.content_tag(:li, 
               template.content_tag(:label, input.to_s.humanize, :for =&gt; &quot;#{@object_name}_#{method}_#{position[input]}i&quot;) + 
-              template.send(&quot;select_#{input}&quot;.intern, @object.send(method), :prefix =&gt; @object_name, :field_name =&gt; &quot;#{method}(#{position[input]}i)&quot;)
+              template.send(&quot;select_#{input}&quot;.intern, @object.send(method), :prefix =&gt; @object_name, :field_name =&gt; &quot;#{method}(#{position[input]}i)&quot;, :include_blank =&gt; options[:include_blank])
             )
           end
         end
@@ -483,7 +481,7 @@ module JustinFrench #:nodoc:
         options[:false] ||= &quot;No&quot;
         
         choices = [ [options[:true],true], [options[:false],false] ]
-        input_label(method, options) + template.select(@object_name, method, choices)
+        input_label(method, options) + template.select(@object_name, method, choices, options)
       end
       
       # Outputs a fieldset containing two radio buttons (with labels) for &quot;true&quot; and &quot;false&quot;. The </diff>
      <filename>lib/justin_french/formtastic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -718,22 +718,23 @@ describe 'Formtastic' do
             end
             
           end
-                    
-        end
         
-        describe ':as =&gt; :select, :include_blank =&gt; true, :prompt =&gt; &quot;choose something&quot;' do
-          before do
-            semantic_form_for(@new_post) do |builder|
-              concat(builder.input(:author_id, :as =&gt; :select, :include_blank =&gt; true, :prompt =&gt; &quot;choose author&quot;))
+          describe 'when :include_blank =&gt; true, :prompt =&gt; &quot;choose something&quot; is set' do
+            before do
+              semantic_form_for(@new_post) do |builder|
+                concat(builder.input(:author_id, :as =&gt; :select, :include_blank =&gt; true, :prompt =&gt; &quot;choose author&quot;))
+              end
+            end
+          
+            it 'should have a blank select option' do
+              output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, / /)
+            end
+            
+            it 'should have a select with prompt' do
+              output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, /choose author/)
             end
           end
           
-          it 'should have a blank select option' do
-             output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, / /)
-           end
-          it 'should have a select with prompt' do
-             output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, /choose author/)
-           end
         end
       end
 
@@ -859,6 +860,17 @@ describe 'Formtastic' do
           output_buffer.should have_tag('form li.date fieldset ol li select', :count =&gt; 3)
         end
         
+        describe 'when :include_blank =&gt; true is set' do
+          before do
+            semantic_form_for(@new_post) do |builder|
+              concat(builder.input(:publish_at, :as =&gt; :date, :include_blank =&gt; true))
+            end
+          end
+        
+          it 'should have a blank select option' do
+            output_buffer.should have_tag(&quot;option[@value='']&quot;, &quot;&quot;)
+          end
+        end
       
       end
 
@@ -902,6 +914,18 @@ describe 'Formtastic' do
         it 'should have five selects for year, month, day, hour and minute' do
           output_buffer.should have_tag('form li.datetime fieldset ol li select', :count =&gt; 5)
         end
+        
+        describe 'when :include_blank =&gt; true is set' do
+          before do
+            semantic_form_for(@new_post) do |builder|
+              concat(builder.input(:publish_at, :as =&gt; :datetime, :include_blank =&gt; true))
+            end
+          end
+        
+          it 'should have a blank select option' do
+            output_buffer.should have_tag(&quot;option[@value='']&quot;, &quot;&quot;)
+          end
+        end
       
       end
 
@@ -943,6 +967,18 @@ describe 'Formtastic' do
           output_buffer.should have_tag('form li.time fieldset ol li select', :count =&gt; 2)
         end
         
+        describe 'when :include_blank =&gt; true is set' do
+          before do
+            semantic_form_for(@new_post) do |builder|
+              concat(builder.input(:publish_at, :as =&gt; :time, :include_blank =&gt; true))
+            end
+          end
+        
+          it 'should have a blank select option' do
+            output_buffer.should have_tag(&quot;option[@value='']&quot;, &quot;&quot;)
+          end
+        end
+        
       end
       
       describe ':as =&gt; :boolean' do
@@ -1147,10 +1183,25 @@ describe 'Formtastic' do
             output_buffer.should have_tag('form li select#post_allow_comments option[@value=&quot;false&quot;]', /No/)
           end
           
-        end
+        end      
+
+        describe 'when :include_blank =&gt; true, :prompt =&gt; &quot;choose something&quot; is set' do
+          before do          
+            semantic_form_for(@new_post) do |builder|
+              concat(builder.input(:allow_comments, :as =&gt; :boolean_select, :include_blank =&gt; true, :prompt =&gt; &quot;choose something&quot;))
+            end
+          end
         
+          it 'should have a blank select option' do
+             output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, / /)
+           end
+          it 'should have a select with prompt' do
+            output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, /choose something/)
+          end
+        end
+      
       end
-
+      
       describe ':as =&gt; :numeric' do
 
         setup do </diff>
      <filename>spec/formtastic_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b85e806dcc370d6f44a3e7c664e1e4bf0deef312</id>
    </parent>
  </parents>
  <author>
    <name>Negonicrac</name>
    <email>negonicrac@gmail.com</email>
  </author>
  <url>http://github.com/freelancing-god/formtastic/commit/3ca56c21ac6bb2ec3d41a6080984deda5e41853e</url>
  <id>3ca56c21ac6bb2ec3d41a6080984deda5e41853e</id>
  <committed-date>2009-01-05T08:15:24-08:00</committed-date>
  <authored-date>2009-01-05T08:15:24-08:00</authored-date>
  <message>added :input_blank =&gt; true supprot to  date, time, datetime and boolean_select</message>
  <tree>c11f90ded57f9e74e29a4f72efadc735ce76c0ff</tree>
  <committer>
    <name>Negonicrac</name>
    <email>negonicrac@gmail.com</email>
  </committer>
</commit>
