Skip to content

Instantly share code, notes, and snippets.

#app/inputs/collection_check_boxes_input.rb
class CollectionCheckBoxesInput < SimpleForm::Inputs::CollectionCheckBoxesInput
def item_wrapper_class
"checkbox-inline"
end
end
@burmjohn
burmjohn / gist:6184640
Created August 8, 2013 13:39
RVM Errors
tar: patchsets/ruby/1.9.2/p180/default: Cannot open: File exists
tar: patchsets/ruby/1.9.2/p180/railsexpress: Cannot open: File exists
tar: patchsets/ruby/1.9.2/p180: Cannot utime: Operation not permitted
tar: patchsets/ruby/1.9.2/p180: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: patchsets/ruby/1.9.2/p290/railsexpress: Cannot open: File exists
tar: patchsets/ruby/1.9.2/p290: Cannot utime: Operation not permitted
tar: patchsets/ruby/1.9.2/p290: Cannot change mode to rwxr-xr-x: Operation not permitted
tar: patchsets/ruby/1.9.2/p318/railsexpress: Cannot open: File exists
tar: patchsets/ruby/1.9.2/p318: Cannot utime: Operation not permitted
tar: patchsets/ruby/1.9.2/p318: Cannot change mode to rwxr-xr-x: Operation not permitted
@burmjohn
burmjohn / gist:1278854
Created October 11, 2011 18:00
For Stoof
javascript:(function() {var m64 = "VkVSU0lPTiUyMEJVSUxEJTNENzQwMDkxOSUyMFJFQ09SREVSJTNERlglMEFUQUIlMjBUJTNEMSUwQVVSTCUyMEdPVE8lM0RhYm91dCUzQWJsYW5rJTBBVVJMJTIwR09UTyUzRGh0dHAlM0ElMkYlMkZ3d3cuY2l0eW9mbm9ydGhsYXN2ZWdhcy5jb20lMkZEZXBhcnRtZW50cyUyRkZpbmFuY2UlMkZCdXNpbmVzc0xpY2Vuc2UlMkZCTExpY1N0YXQuYXNweCUwQVRBRyUyMFBPUyUzRDElMjBUWVBFJTNESU5QVVQlM0FURVhUJTIwRk9STSUzRE5BTUUlM0Fhc3BuZXRGb3JtJTIwQVRUUiUzRElEJTNBY3RsMDBfY3RsMDBfUGFnZUNvbnRlbnRQbGFjZUhvbGRlcl9NYWluQ29udGVudFBsYWNlSG9sZGVyX3R4QnVzTmFtZSUyMENPTlRFTlQlM0QlN0IlN0IhQ0xJUEJPQVJEJTdEJTdEJTBBVEFHJTIwUE9TJTNEMSUyMFRZUEUlM0RJTlBVVCUzQVNVQk1JVCUyMEZPUk0lM0RJRCUzQWFzcG5ldEZvcm0lMjBBVFRSJTNESUQlM0FjdGwwMF9jdGwwMF9QYWdlQ29udGVudFBsYWNlSG9sZGVyX01haW5Db250ZW50UGxhY2VIb2xkZXJfYnRuU3VibWl0JTBBVEFCJTIwT1BFTiUwQVRBQiUyMFQlM0QyJTBBVVJMJTIwR09UTyUzRGh0dHAlM0ElMkYlMkZzYW5kZ2F0ZS5jby5jbGFyay5udi51cyUyRmJ1c2luZXNzTGljZW5zZSUyRmJ1c2luZXNzU2VhcmNoJTJGYmxpbmRleC5hc3AlMEFGUkFNRSUyMEYlM0QwJTBBVEFHJTIwUE9TJTNEMSUyMFRZUEUlM0RBJTIwQVRUUiUzRFRYVCUzQVNlYXJjaCUzQ1NQJTNFYnklM0NTUCUzRUJ1c
@burmjohn
burmjohn / gist:1147675
Created August 15, 2011 20:08
barometer error
ruby-1.9.2-head :001 > require 'barometer'
=> true
ruby-1.9.2-head :002 > barometer = Barometer.new("11516")
=> #<Barometer::Base:0x000000016ebc10 @query=#<Barometer::Query:0x000000016ebbc0 @q="11516", @format=:short_zipcode, @country_code="US", @conversions={}>, @weather=#<Barometer::Weather:0x000000016eb968 @measurements=[]>, @success=false>
ruby-1.9.2-head :003 > weather = barometer.measure
=> #<Barometer::Weather:0x000000016eb968 @measurements=[#<Barometer::Measurement:0x0000000167f060 @source=:wunderground, @metric=nil, @success=true, @weight=1, @links={"Weather Underground NOAA Weather Station"=>"http://wunderground.com/"}, @start_at=2011-08-15 20:02:51 UTC, @query="11516", @format=:zipcode, @current=#<Barometer::Measurement::Result:0x000000015a0f68 @metric=true, @updated_at=2011-08-15, @humidity=66, @icon="mostlycloudy", @temperature=79 F, @wind=6 mph, @pressure=29 in, @dew_point=67 F, @heat_index= F, @wind_chill= F, @visibility=10 m, @sun=#<Data::Sun:0x0000000151ae68 @rise=06:05 am, @set=07:53 pm>,
<ul id="todo-list" style="cursor: move">
<% @task.todos.each do |f| %>
<li id="todo_<%= f.id %>">
<%= f.name %>
</li>
<% end %>
</ul>
<%= sortable_element "todo-list",
:url => {:action => "sort", :id => @task},