<div id="header">
  <h1>Create and Share</h1>
</div>

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

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

  <%= form_for @place, url: places_path do |f| %>
    <%= f.hidden_field :latitude %>
    <%= f.hidden_field :longitude %>
    <%= f.fields_for @comment do |c| %>
      <div class="form-label">Choose a color of your mood:</div>
      <div id="colors">
        <div><a href="#" class="color-picker" style="background-color: #f31;"></a></div>
        <div><a href="#" class="color-picker" style="background-color: #146;"></a></div>
      </div>
      <%= c.hidden_field :mood, id: "comment_mood" %>
      <div class="form-label">Write down what you're doing:</div>
      <%= c.text_area :things, rows: 6, placeholder: "The book you're reading...\nThe music you're listening...\nThe coffee you're drinking...\nOr something else..." %>
    <% end %>
    <%= f.submit %>
  <% end %>
</div>

<div id="header">
  <h1><a href="/">Create and Share</a></h1>
</div>

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

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

  <%= form_for @place, url: places_path do |f| %>
    <%= f.hidden_field :latitude %>
    <%= f.hidden_field :longitude %>
    <%= f.fields_for @comment do |c| %>
      <div class="form-label">Choose a color of your mood:</div>
      <div id="colors">
        <div><a href="#" class="color-picker" style="background-color: #f31;"></a></div>
        <div><a href="#" class="color-picker" style="background-color: #146;"></a></div>
      </div>
      <%= c.hidden_field :mood, id: "comment_mood" %>
      <div class="form-label">Write down what you're doing:</div>
      <%= c.text_area :things, rows: 6, placeholder: "The book you're reading...\nThe music you're listening...\nThe coffee you're drinking...\nOr something else..." %>
    <% end %>
    <%= f.submit %>
  <% end %>
</div>

Add link to new place page
Add link to new place page
