bmalum/constructeev

View on GitHub
app/views/channels/_form.html.erb

Summary

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

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

  <div class="field">
    <%= f.text_field :name %>
  </div>
  <!--div class="field">
    <%= f.label :img_hash %><br>
    <%= f.text_field :img_hash %>
  </div>
  <div class="field">
    <%= f.label :sec_hash %><br>
    <%= f.text_field :sec_hash %>
  </div>
  <div class="field">
    <%= f.label :slug %><br>
    <%= f.text_field :slug %>
  </div-->
  <div class="field">
    <%= f.text_field :email %>
  </div>

  
  <div class="actions">
    <%= f.submit 'Create', :class => "btn btn-primary" %>
  </div>

<% end %>