Adds website link to lodging

This commit is contained in:
Gopesh Tulsyan 2014-06-14 23:32:52 +05:30
parent feabc3b954
commit 01bd45a045
7 changed files with 22 additions and 2 deletions

View file

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

View file

@ -5,6 +5,7 @@
of what they are offering, about types of rooms, prices and address' %>
<%= image_tag f.object.photo(:thumb) if !f.object.photo.blank? %>
<%= f.input :photo %>
<%= f.input :website_link %>
<%= remove_association_link :lodging, f %>
<% end %>
</div>