Skip to content

Instantly share code, notes, and snippets.

View ridiculous's full-sized avatar

Ryan Buckley ridiculous

  • California
View GitHub Profile
@ridiculous
ridiculous / index.html
Created September 25, 2013 17:52 — forked from mbostock/.block
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.29.1"></script>
<style type="text/css">
body {
background: #000;
}
class PostsController < ActionController::Base
def create
Post.create(post_params)
end
def update
Post.find(params[:id]).update_attributes!(post_params)
end
private