Type of content | HTML 1.2 | HTML 4.01 | HTML5 | Purpose |
---|---|---|---|---|
Heading | Yes | Yes | Yes | Organize page content by adding headings and subheadings to the top of each section of the page |
Paragraph | Yes | Yes | Yes | Identify paragraphs of text |
Address | Yes | Yes | Yes | Identify a block of text that contains contact information |
Anchor | Yes | Yes | Yes | Link to other web content |
List | Yes | Yes | Yes | Organize items into a list |
Image | Yes | Yes | Yes | Embed a photograph or drawing into a web page |
Table | No | Yes | Yes | Organize data into rows and columns |
Style | No | Yes | Yes | Add CSS to control how objects on a web page are presented |
Type of content | HTML 1.2 | HTML 4.01 | HTML5 | Purpose |
---|---|---|---|---|
Heading | Yes | Yes | Yes | Organize page content by adding headings and subheadings to the top of each section of the page |
Paragraph | Yes | Yes | Yes | Identify paragraphs of text |
Address | Yes | Yes | Yes | Identify a block of text that contains contact information |
Anchor | Yes | Yes | Yes | Link to other web content |
List | Yes | Yes | Yes | Organize items into a list |
Image | Yes | Yes | Yes | Embed a photograph or drawing into a web page |
Table | No | Yes | Yes | Organize data into rows and columns |
Style | No | Yes | Yes | Add CSS to control how objects on a web page are presented |
This file contains 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
body { | |
text-align: center; | |
margin: 0; | |
} | |
header { | |
height: 60px; | |
line-height: 60px; | |
width: 100%; | |
background: #7fbd42; |
This file contains 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
<nav class="navbar navbar-default"> | |
<div class="container-fluid"> | |
<div class="navbar-header"> | |
<a class="navbar-brand" href="#"> | |
{{ user.name }} | Business Card Generator | |
</a> | |
</div> | |
</div> | |
</nav> | |
<div class="container-fluid"> |
This file contains 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
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
gem install irbtools
Optional.
require 'irb/completion'
require 'map_by_method'
require 'what_methods'
require 'pp'
IRB.conf[:AUTO_INDENT]=true
List the tables in your database:
.tables
List how the table looks:
.schema tablename
Print the entire table:
#Simple Authentication with Bcrypt
This tutorial is for adding authentication to a vanilla Ruby on Rails app using Bcrypt and has_secure_password.
The steps below are based on Ryan Bates's approach from Railscast #250 Authentication from Scratch (revised).
You can see the final source code here: repo. I began with a stock rails app using rails new gif_vault
##Steps