rails new blog. #1

The first step of blog system.
Ruby on Rails prepared template files.

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Use MySQL instead of SQLite3.  #1

$ rails new blog --database=mysql

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Create database.  #1

Edit ./Gemfile and command
$ bundle install

then, create database by rake command:
$ rake db:create

if no bundle install, following error message occurs:
`Could not find a JavaScript runtime.'

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Say Hello Rails sample.  #1

$ rails generate controller home index
$ rails server

then we can see hello page at
http://localhost:3000/home/index.html

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Say "Hello, Rails" in /home/index.html.  #1

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Use 'Hello, Rails!' page to root.  #1

We can access app/views/home/index.html.erb by http://localhost:3000.
Remove an original index page.

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Create a resource for an blog application.  #1

$ rails generate scaffold Post name:string title:string content:text

Signed-off-by: ataka <masayuki.ataka@gmail.com>
Migrate Database.

$ rake db:migrate

New file db/schema.rb is created.

Signed-off-by: ataka <masayuki.ataka@gmail.com>
A simple blog system.  Link to Blog page from top page.  close #1, #2, #3, #4

Signed-off-by: ataka <masayuki.ataka@gmail.com>