Adds lodgings controller and view

This commit is contained in:
Gopesh Tulsyan 2014-06-14 21:48:43 +05:30
parent 029281a9ae
commit e494192ad2
8 changed files with 111 additions and 1 deletions

View file

@ -1,5 +1,5 @@
class Venue < ActiveRecord::Base
attr_accessible :name, :description, :website, :address,:photo, :lodgings_attributes
attr_accessible :name, :description, :website, :address, :photo, :lodgings_attributes
has_many :conferences
has_many :lodgings
before_create :generate_guid