The reference materials used for this lecture can be found at http://api.rubyonrails.org and http://guides.rubyonrails.org.
We also have to take a quick look at rails's flash object.
The flash object allows you to set temporary messages that will
The reference materials used for this lecture can be found at http://api.rubyonrails.org and http://guides.rubyonrails.org.
We also have to take a quick look at rails's flash object.
The flash object allows you to set temporary messages that will
# string are processed literally inside computers | |
puts "Martin and Maggie are awesome co-workers!" | |
puts "here's another string" | |
# we can add numbers since they're the same type | |
puts 4 + 4 | |
# we can add to strings (concat.) together to form a third string | |
puts 4.to_s + 8.to_s |
<!DOCTYPE html> | |
<!-- HTML5 Hello world by kirupa - http://www.kirupa.com/html5/getting_your_feet_wet_html5_pg1.htm --> | |
<html lang="en-us"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Hello...</title> | |
</head> | |
<body> | |
<section> | |
<h1> |
gem 'activerecord' | |
gem 'pg' |
get '/contacts' do | |
@contacts = [ | |
{ | |
first_name: "Ann", | |
last_name: "Simon" | |
}, | |
{ | |
first_name: "Peter", | |
last_name: "Gabriel" |
angular.module('d3AngularApp', ['d3']) | |
.directive('d3Bars', ['$window', '$timeout', 'd3Service', | |
function($window, $timeout, d3Service) { | |
return { | |
restrict: 'A', | |
scope: { | |
data: '=', | |
label: '@', | |
onClick: '&' | |
}, |