$ rails g model User
belongs_to
has_one
| body { | |
| width: 100%; | |
| background-image:url('../img/wavegrid.png'); | |
| } | |
| #main_container { | |
| margin: 10px auto; | |
| width: 800px; | |
| } |
| // name_of_obj.name_of_key_in_object => value_associated_with_that_key | |
| var board = [ | |
| [0, 0, 0], | |
| [0, 0, 0], | |
| [0, 0, 0] | |
| ]; | |
| // Variable to store the winning player. | |
| var winningPlayer= 0; |
| <html> | |
| <head> | |
| <title>Puppies</title> | |
| <link rel="stylesheet" type="text/css" href="puppies.css"> | |
| <script src="puppies.js"></script> | |
| </head> | |
| <body> | |
| <center> | |
| <div class="top"> | |
| <h1>Puppies - wait, is that a puppy?! </h1> |
##jQuery
###Basics
###Select elements and add property
$('#topsquare').addClass('white-text');
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>ATM</title> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="atm.css"> | |
| <script src="atm.js"></script> | |
| </head> | |
| <body> | |
| <div id="content"> |