Skip to content

Instantly share code, notes, and snippets.

View gen1321's full-sized avatar
🏠
Working from home

Boris Beginin gen1321

🏠
Working from home
View GitHub Profile
require 'nokogiri'
t = ('<div class="listing">
<div class="row">
<span class="left">Title:</span>
<span class="right">The Well-Grounded Rubyist</span>
</div>
<div class="row">
<span class="left">Author:</span>
<span class="right">David A. Black</span>
</div>
Sass::SyntaxError in Static_pages#home
Showing /home/gen/upwork/dunno/globalagritrends.com.code (1)/app/views/layouts/application.html.haml where line #12 raised:
".content table" failed to @extend ".table".
The selector ".table" was not found.
Use "@extend .table !optional" if the extend should be able to fail.
(in /home/gen/upwork/dunno/globalagritrends.com.code (1)/app/assets/stylesheets/layout.css.scss.erb)
def comment
@comment = @post.comments.create(comment_params)
@comment[:state]= "approved"
@comment[:spam]= false
if @comment.valid?
if Comment::Moderation.enabled? or @comment.ham?
begin
CommentMailer.notification(@comment, request).deliver_now