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

@ -0,0 +1,10 @@
<div class="nested-fields">
<%= f.inputs do %>
<%= f.input :name %>
<%= f.input :description, :input_html => {:rows => 2 }, hint: 'Write about the hotel/place,
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 %>
<%= remove_association_link :lodging, f %>
<% end %>
</div>