diff --git a/app/inputs/checkbox_autocomplete_input.rb b/app/inputs/checkbox_autocomplete_input.rb index c320d72..f90903a 100644 --- a/app/inputs/checkbox_autocomplete_input.rb +++ b/app/inputs/checkbox_autocomplete_input.rb @@ -1,4 +1,4 @@ -class CheckboxAutocompleteInput < FormtasticBootstrap::Inputs::CheckboxInput +class CheckboxAutocompleteInput < FormtasticBootstrap::Inputs::CheckBoxesInput def input_html_options super #super.merge(:class => "input-append date") diff --git a/app/views/neuigkeiten/_neuigkeit_edit.html.erb b/app/views/neuigkeiten/_neuigkeit_edit.html.erb index 632e127..be71903 100644 --- a/app/views/neuigkeiten/_neuigkeit_edit.html.erb +++ b/app/views/neuigkeiten/_neuigkeit_edit.html.erb @@ -29,15 +29,17 @@ <% end %>
<%= link_to image_tag(@neuigkeit.picture_robust.big_thumb.url),@neuigkeit.picture_robust.try(:url) %>
+
+ <% unless @neuigkeit.picture_robust.big_thumb.to_s.empty? %><%= link_to image_tag(@neuigkeit.picture_robust.big_thumb.url),@neuigkeit.picture_robust.try(:url) %>
+ <% end %>
<%= f.input :picture, as: :uploader %>
<%= f.hidden_field :picture_cache %>