This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| = form_for(@content) do |f| | |
| - if @content.errors.any? | |
| #error_explanation | |
| %h2 | |
| = pluralize(@content.errors.count, "error") | |
| prohibited this content from being saved: | |
| %ul | |
| - @content.errors.full_messages.each do |msg| | |
| %li= msg | |
| .form-group |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Репозиторий https://github.com/gorborukov/autocar – создаем пустой проект и делаем пуш в ветку мастер, далее каждую задачу в отдельную ветку и по окончании задачи делаешь пул реквест http://ivan.rolik.name/2013/01/29/pull-request-without-fork-github/. | |
| Разделы сайта: | |
| Главная | |
| Каталог | |
| - Бетононасосы | |
| - Подкатегории бетононасосов | |
| - Товар отдельно |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Погода на сегодня: | |
| <ul class="forecast"></ul> | |
| <script> | |
| var yqlCallback = function(data) { | |
| var resorts = ["Сочи", "Красная Поляна", "Анапа", "Геленджик"] | |
| for (var i = 0; i < 4; i++) { | |
| $("ul.forecast").append("<li><a href=\"\">" + "<b>" + resorts[i] + " </b>" + data.query.results.channel[i].item.condition.temp + "°" + " C" + "</a></li>") | |
| } | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .child-options, #childAge1, #childAge2, #childAge3, #childAge4, #childAge5 { | |
| display: none; | |
| } | |
| <input type="radio" name="inlineRadioOptions" id="child1" value="option1"> 1 | |
| ... | |
| <input type="radio" name="inlineRadioOptions" id="child5" value="option5"> 5 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <% if @soap_daily_price != nil %> | |
| <div class="daily"> | |
| <h2>Суточные цены</h2> | |
| <table class="table"> | |
| <tr> | |
| <th>Даты размещения</th> | |
| <th>Номер</th> | |
| <th>Тип размещения</th> | |
| <th>Питание</th> | |
| <th>Цена, руб</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <table> | |
| <% | |
| dates_from = @soap_daily_price.map{|item| item[:date_from]}.uniq.sort | |
| dates_to = @soap_daily_price.map{|item| item[:date_to]}.uniq | |
| rooms_types = @soap_daily_price.map{|item| [item[:room_type_name],item[:room_category_name]]}.uniq | |
| %> | |
| <tr> | |
| <td>empty</td> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| /** | |
| ** Сохранение данных о СПО в базе: | |
| ** 1. http-запрос | |
| ** 2. xml-парсинг | |
| ** 3. вставка в mysql:masterweb_ext.mwToursInfo | |
| **/ | |
| define('INC_DIR', dirname(__FILE__).'/../includes/'); | |
| require_once INC_DIR.'auto_prepend.php'; | |
| require_once INC_DIR.'showcase/params.php'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="optionals"> | |
| <% @sections.each_with_index do |section, index| %> | |
| <div class="field"> | |
| <label><b><%= section.name %></b></label> | |
| <%= hidden_field_tag "hotel[option_ids][]", nil %> | |
| <% section.options.each do |option| %> | |
| <label><%= check_box_tag "hotel[option_ids][]" %> | |
| <%= option.name %></label> | |
| <% end %> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [ | |
| { | |
| "region": "Москва и Московская обл.", | |
| "city": "Москва" | |
| }, | |
| { | |
| "region": "Москва и Московская обл.", | |
| "city": "Абрамцево" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'csv' | |
| CSV.open('./public/russia_hotels.csv', 'r').each do |row| | |
| Hotel.create(:ean_hotel_id => row[0],:name => row[1],:name_ru => row[2],:address=>row[3],:address_ru=>row[4],:city=>row[5],:city_ru=>row[6],:latitude=>row[8],:longitude=>row[9],:airport=>row[10],:nearby=>row[11],:nearby_ru=>row[12],:high_rate=>row[13],:low_rate=>row[14]) | |
| end |