Sha256: f3ffccf79a4378c3b0fa38d5bf0f367ee7ada1d96d1167440b181c2af96b789e

Contents?: true

Size: 1.32 KB

Versions: 4

Compression:

Stored size: 1.32 KB

Contents

<%= form_for(@bar) do |f| %>
  <% if @bar.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@bar.errors.count, "error") %> prohibited this bar from being saved:</h2>

      <ul>
      <% @bar.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :contract_id %><br />
    <%= f.number_field :contract_id %>
  </div>
  <div class="field">
    <%= f.label :open %><br />
    <%= f.text_field :open %>
  </div>
  <div class="field">
    <%= f.label :high %><br />
    <%= f.text_field :high %>
  </div>
  <div class="field">
    <%= f.label :low %><br />
    <%= f.text_field :low %>
  </div>
  <div class="field">
    <%= f.label :close %><br />
    <%= f.text_field :close %>
  </div>
  <div class="field">
    <%= f.label :wap %><br />
    <%= f.text_field :wap %>
  </div>
  <div class="field">
    <%= f.label :volume %><br />
    <%= f.number_field :volume %>
  </div>
  <div class="field">
    <%= f.label :trades %><br />
    <%= f.number_field :trades %>
  </div>
  <div class="field">
    <%= f.label :has_gaps %><br />
    <%= f.check_box :has_gaps %>
  </div>
  <div class="field">
    <%= f.label :time %><br />
    <%= f.text_field :time %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ib-ruby-0.9.2 app/views/ib/bars/_form.html.erb
ib-ruby-0.9.1 app/views/ib/bars/_form.html.erb
ib-ruby-0.9.0 app/views/ib/bars/_form.html.erb
ib-ruby-0.8.5 app/views/ib/bars/_form.html.erb