Add image into investment show and add some change of css.

This commit is contained in:
Alessandro Cuoghi
2017-06-22 13:29:09 +02:00
committed by Senén Rodero Rodríguez
parent 0925d33c5b
commit dd1e73c5fd
3 changed files with 32 additions and 10 deletions

View File

@@ -16,8 +16,8 @@ class Budget
acts_as_votable
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases
has_attached_file :image, styles: { large: "600x600>", medium: "300x300#", thumb: "140x245#" }
has_attached_file :image, styles: { large: "x475", medium: "300x300#", thumb: "140x245#" }
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'
belongs_to :heading