Surprise! We've been running on hardware provided by BuyVM for a few months and wanted to show them a little appreciation.
Running a paste site comes with unique challenges, ones that aren't always obvious and hard to control. As such, BuyVM offered us a home where we could worry less about the hosting side of things and focus on maintaining a clean and useful service! Go check them out and show them some love!
Description: Add Class to Init
Submitted on May 24, 2013 at 06:28 PM

Section 1 (Ruby)

Goal: on a initializer field_error.rb add a .wrong class to <div class="wrapOption">
when there is a validation error.


<% @templates.each do |radio| %>
<div class="wrapOption">
<span class="spanOption"><%= f.radio_button :template_id, radio.id %></span><%= content_tag(:label, radio.title, :class => "labelOption")%>
</div>
<% end %>