現在Airbnbのようなサイトを作っています。
以下がRoomのlistingの_form
ページの内容ですが、一番最後に<% end %>
を入力しているにも関わらず、syntax error, unexpected keyword_ensure, expecting end-of-input ensure ^
が出てしまいます。
かなりの時間はまっておりまして、アドバイスをいただけると大変幸いです。
<%= stylesheet_link_tag "listings" %> <div class="field_0"> <label class="label_room_type">Room Type</label> <div class="select-wrap_1"> <%= select :room_type, [["entire house/apartment", "entire house/apartment"], ["shared house", "shared house"],["private_room","private_room"]], {},{ id:'room_type',class: 'room_type'} %><br /> </div> </div> <div class="field_0"> <label class="label_capacity_of_guest">Capacity of Guest</label> <div class="select-wrap_2"> <%= select :capacity_of_guest, [["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6+", "6"]],{}, { id:'capacity_of_guest',class: 'capacity_of_guest'} %><br /> </div> </div> </br> <div class="field_0"> <label class="label_number_of_bed">Number of Guest</label> <div class="select-wrap_3"> <%= select :number_of_bed, [["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6+", "6"]],{}, { id:'number_of_bed',class: 'number_of_bed'} %><br /> </div> </div> <div class="field_0"> <label class="label_number_of_bed">Number of Bathroom</label> <div class="select-wrap_4"> <%= select :number_of_bathroom, [["1", "1"], ["2", "2"], ["3", "3"], ["4", "4"], ["5", "5"], ["6+", "6"]],{}, { id: 'number_of_bathroom',class: 'number_of_bathroom'} %><br /> </div> </div> <h4 class="subheading_2"> Please check items for Meals, facilities and amenities if provided for your guests.(Optional)</h5> <label class="sub-item"> Meals </label> </br> </br> <div class="field"> <%= form.check_box :breakfast, id: :listing_breakfast, class: 'checkbox-input' %> <%= form.label :breakfast, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :dinner, id: :listing_dinner, class: 'checkbox-input' %> <%= form.label :dinner, class: 'checkbox-label' %> </div> </br> </br> <hr class="line0"> <label class="sub-item"> Facilities </label> </br> </br> <div class="field"> <%= form.check_box :TV, id: :listing_TV, class: 'checkbox-input' %> <%= form.label :TV, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :kitchen, id: :listing_kitchen, class: 'checkbox-input' %> <%= form.label :kitchen, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :closet, id: :listing_closet, class: 'checkbox-input' %> <%= form.label :closet, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :clothes_hanger, id: :listing_clothes_hanger, class: 'checkbox-input' %> <%= form.label :clothes_hanger, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :airconditioner, id: :listing_airconditioner, class: 'checkbox-input' %> <%= form.label :airconditioner, class: 'checkbox-label' %> </div> </br> </br> <div class="field"> <%= form.check_box :refrigerator, id: :listing_refrigerator, class: 'checkbox-input' %> <%= form.label :refrigerator, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :washing_machine, id: :listing_washing_machine, class: 'checkbox-input' %> <%= form.label :washing_machine, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :car_parking, id: :listing_car_parking, class: 'checkbox-input' %> <%= form.label :car_parking, class: 'checkbox-label' %> </div> </br> </br> <hr class="line1"> <label class="sub-item"> Amenities </label> </br> </br> <div class="field"> <%= form.check_box :shampoo, id: :listing_shampoo, class: 'checkbox-input' %> <%= form.label :shampoo, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :soap, id: :listing_soap, class: 'checkbox-input' %> <%= form.label :soap, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :towel, id: :listing_towel, class: 'checkbox-input' %> <%= form.label :towel, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :slippers, id: :listing_slippers, class: 'checkbox-input' %> <%= form.label :slippers, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :toothbrush, id: :listing_toothbrush, class: 'checkbox-input' %> <%= form.label :toothbrush, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :hair_dryer, id: :listing_hair_dryer, class: 'checkbox-input' %> <%= form.label :hair_dryer, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :sleepwear, id: :listing_sleepwear, class: 'checkbox-input' %> <%= form.label :sleepwear, class: 'checkbox-label' %> </div> </br> </br> <hr class="line2"> <label class="sub-item"> Others </label> </br> </br> <div class="field"> <%= form.check_box :smoking_ok, id: :listing_smoking_ok, class: 'checkbox-input' %> <%= form.label :smoking_ok, class: 'checkbox-label' %> </div> <div class="field"> <%= form.check_box :available_for_baby, id: :listing_available_for_baby , class: 'checkbox-input'%> <%= form.label :available_for_baby, class: 'checkbox-label' %> </div> </div> <%= form.submit "next >", class: 'actions' %> <% end %>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/09/19 01:32 編集
2017/09/19 01:37
2017/09/19 02:36