This file contains hidden or 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
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 |
This file contains hidden or 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
@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" ) |
This file contains hidden or 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
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>] |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Moving Spheres · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Jonathan Sampson, http://codepen.io/jonathansampson | |
Permission is hereby granted, free of charge, to any person obtaining |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Spinning Shapes · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Tyler Benziger, http://codepen.io/tybenz | |
Permission is hereby granted, free of charge, to any person obtaining |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Particle branches · CodePen</title> | |
<!-- | |
Copyright (c) 2012 Tyler Benziger, http://codepen.io/tybenz | |
Permission is hereby granted, free of charge, to any person obtaining |
This file contains hidden or 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
var BlackOut = ThemeBot.extend({ | |
spec: { | |
global: { | |
"font-family": { | |
"selector": "body", | |
"dropEvent": { | |
"color": "invert", | |
"border-color": "30%" | |
} | |
}, |
This file contains hidden or 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
var BlackOut = ThemeBot.extend({ | |
spec: { | |
global: { | |
"font-family": { | |
"selector": "body", | |
}, | |
"max-width": { | |
"selector": ".container" | |
} |
This file contains hidden or 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
hello world |
This file contains hidden or 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
function attachReviewerListBehavior() | |
{ | |
var $links = $( '#reviewer-list a' ), | |
$panels = $( '#reviewer-list .feedback-panel' ); | |
if ( $links.length === 0 ) { | |
return; | |
} | |
$links.click( function() { |