Skip to content

Instantly share code, notes, and snippets.

public static String getStackTraceAsString(Exception e) {
StringWriter stackTrace = new StringWriter();
e.printStackTrace(new PrintWriter(stackTrace));
return stackTrace.toString();
}
<div class="row">
<div class="small-4 columns"></div>
<div class="small-4 columns"></div>
<div class="small-4 columns"></div>
</div>
<div class="row">
<div class="small-6 columns"></div>
<div class="small-6 columns"></div>
</div>
<div class="row">
@fuzzylizard
fuzzylizard / gist:397faed2831bba953d07
Created May 27, 2014 19:39
Full-width background panel html for Foundation
<div class="full-width">
<div class="row">
<div class="large-12 columns">
<!-- put content here -->
</div>
</div>
</div>
@fuzzylizard
fuzzylizard / gist:83eaa104c25346ab9b13
Last active August 29, 2015 14:01
CSS for full-width panel - Foundation
.full-wdith {
background-color: tomato;
}
# add column to article model
class AddActiveToArticles< ActiveRecord::Migration
def change
add_column :articles, :active, :boolean
end
end
# now we need to modify our destroy method on our ArticleController
class ArticlesController < ApplicationController
def destroy