diff --git a/app/models/neuigkeit.rb b/app/models/neuigkeit.rb index f91f7d1..6bab7a0 100755 --- a/app/models/neuigkeit.rb +++ b/app/models/neuigkeit.rb @@ -13,7 +13,7 @@ # class Neuigkeit < ActiveRecord::Base - attr_accessible :datum, :text, :title, :rubrik_id, :author_id,:picture, :calentries_attributes, :flag_important + attr_accessible :datum, :text, :title, :rubrik_id, :author_id,:picture,:picture_cache, :calentries_attributes, :flag_important belongs_to :author, :class_name =>'User' belongs_to :rubrik, :class_name =>'Rubrik', :foreign_key => "rubrik_id" has_one :calendar, through: :rubrik diff --git a/app/views/neuigkeiten/_neuigkeit_edit.html.erb b/app/views/neuigkeiten/_neuigkeit_edit.html.erb index 9f127b0..632e127 100644 --- a/app/views/neuigkeiten/_neuigkeit_edit.html.erb +++ b/app/views/neuigkeiten/_neuigkeit_edit.html.erb @@ -30,7 +30,7 @@ <% end %>
<%= link_to image_tag(@neuigkeit.picture_robust.big_thumb.url),@neuigkeit.picture_robust.try(:url) %>
<%= f.input :picture, as: :uploader %>
<%= f.hidden_field :picture_cache %>
@@ -38,7 +38,7 @@