Skip to content

Instantly share code, notes, and snippets.

Created May 15, 2013 08:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/5582495 to your computer and use it in GitHub Desktop.
Save anonymous/5582495 to your computer and use it in GitHub Desktop.
<div id="new-smoke-div">
<h1 class="new-smoke-title">Send us a Smoke</h1>
<div id="new-smoke-errors">
<% @smoke.errors.each do |attr, msg| %>
<p><%= "#{msg}" if @smoke.errors[attr].first == msg %></p>
<% end %>
</div>
<div id="new-smoke-form">
<%= form_tag '/smokes', :authenticity_token => form_authenticity_token, :multipart => true, :method => "post" do %>
<%= hidden_field_tag 'latitude', @smoke.latitude %>
<%= hidden_field_tag 'longitude', @smoke.longitude %>
<div id="new-smoke-picture">
<p>Upload a picture (optional):</p>
<%= file_field_tag 'picture' %>
<div class="clear">
</div>
</div>
<div id="new-smoke-description">
<p>Talk about it:</p>
<div id="new-smoke-remain" class="new-smoke-remain">256</div>
<%= text_area_tag 'description', nil, :class => "new-smoke-textarea", :id => "new-smoke-textarea" %>
</div>
<%= submit_tag "Create", :class => "new-smoke-button" %>
<% end %>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment