Skip to content

Instantly share code, notes, and snippets.

@irishsox5
irishsox5 / _form.html.erb
Created March 23, 2015 20:56
For Marcus's Help
<%= form_for(@stake) do |f| %>
<% if @stake.errors.any? %>
<div id="error_explanation">
<h2><%= pluralize(@stake.errors.count, "error") %> prohibited this stake from being saved:</h2>
<ul>
<% @stake.errors.full_messages.each do |message| %>
<li><%= message %></li>
<% end %>
</ul>
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management
# 4. Searching
# 5. Process Management