Skip to content

Instantly share code, notes, and snippets.

2012-06-08T16:23:56+00:00 app[web.1]: Started GET "/dashboard" for 67.181.90.70 at 2012-06-08 16:23:56 +0000
2012-06-08T16:23:56+00:00 app[web.1]: Processing by DashboardController#index as HTML
2012-06-08T16:23:57+00:00 app[web.1]: Rendered dashboard/_submitter.html.erb (196.2ms)
2012-06-08T16:23:57+00:00 app[web.1]: Rendered dashboard/_reviewer.html.erb (197.6ms)
2012-06-08T16:23:57+00:00 app[web.1]: Rendered dashboard/index.html.erb within layouts/application (361.9ms)
2012-06-08T16:23:57+00:00 app[web.1]:
2012-06-08T16:23:57+00:00 app[web.1]: Completed 500 Internal Server Error in 678ms
2012-06-08T16:23:57+00:00 app[web.1]: ActionView::Template::Error (PG::Error: ERROR: column "projects.slots" must appear in the GROUP BY clause or be used in an aggregate function
2012-06-08T16:23:57+00:00 app[web.1]: : SELECT "projects".* FROM "projects" INNER JOIN "project_revisions" ON "project_revisions"."project_id" = "projects"."id" LEFT JOIN reviews ON reviews.project_revision_id = project_revisions.id WHERE
@submittals[ :active ] = Project.with_reviews.
where( "projects.user_id" => current_user.id ).
where( "reviews.visible = false OR reviews.visible IS NULL" ).
review_count.
order( "COUNT(reviews.visible::integer) ASC" )
irb(main):015:0* Project.with_reviews.select("projects.id")
Project Load (1.2ms) SELECT projects.id FROM "projects" INNER JOIN "project_revisions" ON "project_revisions"."project_id" = "projects"."id" LEFT JOIN reviews ON reviews.project_revision_id = project_revisions.id
=> [#<Project id: 1>, #<Project id: 1>, #<Project id: 1>, #<Project id: 2>, #<Project id: 4>, #<Project id: 3>]
@tybenz
tybenz / index.html
Created July 16, 2012 16:42
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Moving Spheres &middot; CodePen</title>
<!--
Copyright (c) 2012 Jonathan Sampson, http://codepen.io/jonathansampson
Permission is hereby granted, free of charge, to any person obtaining
@tybenz
tybenz / index.html
Created July 16, 2012 17:09
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Spinning Shapes &middot; CodePen</title>
<!--
Copyright (c) 2012 Tyler Benziger, http://codepen.io/tybenz
Permission is hereby granted, free of charge, to any person obtaining
@tybenz
tybenz / index.html
Created July 16, 2012 17:11
A web page created at CodePen.io
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Particle branches &middot; CodePen</title>
<!--
Copyright (c) 2012 Tyler Benziger, http://codepen.io/tybenz
Permission is hereby granted, free of charge, to any person obtaining
var BlackOut = ThemeBot.extend({
spec: {
global: {
"font-family": {
"selector": "body",
"dropEvent": {
"color": "invert",
"border-color": "30%"
}
},
var BlackOut = ThemeBot.extend({
spec: {
global: {
"font-family": {
"selector": "body",
},
"max-width": {
"selector": ".container"
}
hello world
function attachReviewerListBehavior()
{
var $links = $( '#reviewer-list a' ),
$panels = $( '#reviewer-list .feedback-panel' );
if ( $links.length === 0 ) {
return;
}
$links.click( function() {