This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.full-wdith { | |
background-color: tomato; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="full-width"> | |
<div class="row"> | |
<div class="large-12 columns"> | |
<!-- put content here --> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static String getStackTraceAsString(Exception e) { | |
StringWriter stackTrace = new StringWriter(); | |
e.printStackTrace(new PrintWriter(stackTrace)); | |
return stackTrace.toString(); | |
} |