This file contains hidden or 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
【予備知識:MVCとは】 | |
RailsのアプリケーションはMVCモデルに則る。 | |
◆ Model :ビジネスロジック | |
◆ View :ユーザーインターフェース | |
◆ Controller :全体の管理 | |
簡潔に言うと、 |
This file contains hidden or 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
$ git log | |
$ git revert [commit/(ex:5dfbxxx000xx....)] | |
$ git checkout master | |
$ git merge [old_branch_name] | |
$ git checkout -b [new_branch_name] | |
$ git cherry-pick [commit/(ex:5dfbxxx000xx....)] | |
$ git log | |
$ git branch -d [old_branch_name] |
This file contains hidden or 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
<script src="index.js"></script> |
This file contains hidden or 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
| Left align | Right align | Center align | | |
|:-----------|------------:|:------------:| | |
| This | This | This | | |
| column | column | column | | |
| will | will | will | | |
| be | be | be | | |
| left | right | center | | |
| aligned | aligned | aligned | |
This file contains hidden or 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
config.scoped_views = true |
This file contains hidden or 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
book_data = {title: "Frozen", author: "Charles Dickens"} | |
book_review = {rate: 10, review: "Awesome!"} | |
book_data.merge(book_review) | |
# => {title: "Frozen", author: "Charles Dickens", rate: 10, review: "Awesome!"} |
This file contains hidden or 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
1. 黒 | |
2. a要素にマウスオーバーした際の挙動を指定している。「:hover」は擬似クラスと呼ばれウェブサイト閲覧者が指定のアクションを起こした際に適用される。他にも「:active」という、指定の要素にマウスオーバーしクリックし続けている間の動作を指定するのに用いられる擬似クラスが存在する。 | |
3. header { position: fixed; } | |
4. li { list-style: none; } |
This file contains hidden or 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
メンバーの名前を入力してください: | |
TsugumiHoge | |
年齢を入力してください: | |
26 |
This file contains hidden or 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
# 現ディレクトリ配下のディレクトリ/ファイルを表示 | |
$ ls | |
# 既存ディレクトリに移動する | |
$ cd [ディレクトリ名] | |
# 新規ディレクトリを作成する | |
$ mkdir [ディレクトリ名] | |
# 新規ファイルを作成する |
NewerOlder