Refactoring lodgings

This commit is contained in:
chrisbr 2014-11-12 12:00:03 +01:00
parent c0cdf3e6e5
commit 580c6c6ed9
11 changed files with 177 additions and 68 deletions

View file

@ -1,6 +1,9 @@
class Lodging < ActiveRecord::Base
attr_accessible :name, :description, :photo, :website_link, :venue_id
belongs_to :venue
validates :name, presence: true
has_attached_file :photo,
styles: { thumb: '100x100>', large: '300x300>' }