Commit 3fec50d6

mo khan <mo@mokhan.ca>
2013-07-01 23:56:06
remove created_at column and image attr_accessible
1 parent e30f4ba
Changed files (2)
app
app/models/creation.rb
@@ -1,7 +1,7 @@
 class Creation < ActiveRecord::Base
   acts_as_commentable
   validates :name,  :presence => true
-  attr_accessible :user_id, :story, :name, :category_ids, :is_restricted, :watermark, :image
+  attr_accessible :user_id, :story, :name, :category_ids, :is_restricted, :watermark
   belongs_to :user
   has_and_belongs_to_many :categories, :join_table => 'creations_categories', :uniq => true, :autosave => true
   has_many :photos, :dependent => :destroy
app/views/search/index.html.erb
@@ -16,7 +16,6 @@
           <td><%= link_to creation.user.name, profile_path(creation.user) %></td>
           <td><%= creation.name %></td>
           <td><%= creation.story %></td>
-          <td><%= creation.created_at %></td>
         </tr>
       <% end %>
       </tbody>