app/views/contacts/_show.html.erb in spud_inquiries-1.0.0.rc2 vs app/views/contacts/_show.html.erb in spud_inquiries-1.0.0.rc3

- old
+ new

@@ -17,9 +17,12 @@ when '2' f.text_area field.field_name,:value => params[:spud_inquiry].blank? || params[:spud_inquiry][field.field_name].blank? ? field.default_value : params[:spud_inquiry][field.field_name],:rows=>5,:cols => 70, :placeholder => field.placeholder when '3' f.select field.field_name,options_for_select(field.options_list.collect {|opt| [opt,opt]}, params[:spud_inquiry].blank? || params[:spud_inquiry][field.field_name].blank? ? field.default_value : params[:spud_inquiry][field.field_name]), {:include_blank => true} end%> + <% if @spud_inquiry.errors[field.field_name].length > 0 %> + <span class="help-block"><% @spud_inquiry.errors[field.field_name].each do |error| %> <%= error %> <% end %></span> + <% end %> </div> </div> <%end%> <div class="spud_inquiry_hide"> <label id='other_email_label' for='other_email'>Please leave blank:</label>