<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -554,10 +554,14 @@ module Formtastic #:nodoc:
     #
     # By default, all select inputs will have a blank option at the top of the list. You can add
     # a prompt with the :prompt option, or disable the blank option with :include_blank =&gt; false.
+    #
     def select_input(method, options)
       collection = find_collection_for_column(method, options)
       html_options = options.delete(:input_html) || {}
-      options[:include_blank] ||= true
+
+      unless options.key?(:include_blank) || options.key?(:prompt)
+        options[:include_blank] = true
+      end
 
       reflection = find_reflection(method)
       if reflection &amp;&amp; [ :has_many, :has_and_belongs_to_many ].include?(reflection.macro)</diff>
      <filename>lib/formtastic.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1511,7 +1511,7 @@ describe 'Formtastic' do
           end
           
           it 'should have a blank option by default' do
-            output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, //)
+            output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, &quot;&quot;)
           end
         end
         
@@ -1524,25 +1524,25 @@ describe 'Formtastic' do
           end
           
           it 'should not have a blank option' do
-            output_buffer.should have_tag(&quot;form li select option[@value='']&quot;, //)
+            output_buffer.should_not have_tag(&quot;form li select option[@value='']&quot;, &quot;&quot;)
           end
         end
-        
-        describe 'when :include_blank =&gt; true and :prompt =&gt; &quot;choose something&quot; is set' do
+
+        describe 'when :prompt =&gt; &quot;choose something&quot; is set' do
           before do
             @new_post.stub!(:author_id).and_return(nil)
             semantic_form_for(@new_post) do |builder|
-              concat(builder.input(:author, :as =&gt; :select, :include_blank =&gt; true, :prompt =&gt; &quot;choose author&quot;))
+              concat(builder.input(:author, :as =&gt; :select, :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
+
+          it 'should not have a blank select option' do
+            output_buffer.should_not have_tag(&quot;form li select option[@value='']&quot;, &quot;&quot;)
+          end
         end
 
         describe 'when no object is given' do</diff>
      <filename>spec/formtastic_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a9bd9ec3a6505a1e58d5766fe4f4e9f3836f09ca</id>
    </parent>
  </parents>
  <author>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </author>
  <url>http://github.com/justinfrench/formtastic/commit/0db1251bc9049dc4c5e6a74f5cda5cc34a587ddf</url>
  <id>0db1251bc9049dc4c5e6a74f5cda5cc34a587ddf</id>
  <committed-date>2009-05-31T00:16:09-07:00</committed-date>
  <authored-date>2009-05-31T00:16:09-07:00</authored-date>
  <message>Just show blank option if neither include blank and prompt are sent as options, resolving issue #16.</message>
  <tree>63c608e0d97502b17169a80e8598b29fd264f02d</tree>
  <committer>
    <name>Jos&#233; Valim</name>
    <email>jose.valim@gmail.com</email>
  </committer>
</commit>
