Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 33 additions & 14 deletions _figures/assets/CRUD/index_routes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,24 @@
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="wrapper">
<div class="wrapper is-wide">

<div class="text__path">http://localhost:3000/rails/info/routes</div>

<table id='route_table' class='route_table with-margin'>
<thead>
<tr>
<th>Helper</th>
<th>Helper
(<a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> /
<a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a>)
</th>
<th>HTTP Verb</th>
<th>Path</th>
<th>Controller#Action</th>
<th>Source Location</th>
</tr>
<tr class='bottom'>
<th>
<a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> /
<a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a>
</th>
<th>
</th>
<th>
<input id="search" placeholder="Path Match" type="search" name="path[]" />
</th>
<th>
<th colspan="5" id="search_container"><input id="search" placeholder="Search" type="search" name="query[]" style="width:98%;">
</th>
</tr>
</thead>
Expand All @@ -47,7 +43,10 @@
<span class="text__underline">/books(.:format)</span>
</td>
<td class="with-description">
<span class="text__underline">books#index</span>
<p><span class="text__underline">books#index</span></p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
Expand All @@ -62,6 +61,9 @@
<td>
<p>books#create</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name='new_book'>
Expand All @@ -76,6 +78,9 @@
<td>
<p>books#new</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name='edit_book'>
Expand All @@ -90,6 +95,9 @@
<td>
<p>books#edit</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name='book'>
Expand All @@ -104,6 +112,9 @@
<td>
<p>books#show</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -117,6 +128,9 @@
<td>
<p>books#update</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -130,6 +144,9 @@
<td>
<p>books#update</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -143,8 +160,10 @@
<td>
<p>books#destroy</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>

</tbody>
</table>

Expand Down
55 changes: 39 additions & 16 deletions _figures/assets/new-create/create_routes.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" href="../css/style.css">
</head>
<body>
<div class="wrapper">
<div class="wrapper is-wide">

<div class="box">
<h2 class="box__headline">リクエスト</h2>
Expand All @@ -18,21 +18,20 @@ <h2 class="box__headline">リクエスト</h2>

<table id='route_table' class='route_table with-margin'>
<thead>
<tr>
<th>Helper</th>
<th>HTTP Verb</th>
<th>Path</th>
<th>Controller#Action</th>
</tr>
<tr class='bottom'>
<th> <a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> /
<a data-route-helper="_url" title="Returns an absolute url (with the http and domain)" href="#">Url</a>
</th>
<th> </th>
<th> <input id="search" placeholder="Path Match" type="search" name="path[]" />
</th>
<th> </th>
</tr>
<tr>
<th>Helper
(<a data-route-helper="_path" title="Returns a relative path (without the http or domain)" href="#">Path</a> /
<a data-route-helper="_url" title="Returns an absolute URL (with the http and domain)" href="#">Url</a>)
</th>
<th>HTTP Verb</th>
<th>Path</th>
<th>Controller#Action</th>
<th>Source Location</th>
</tr>
<tr class='bottom'>
<th colspan="5" id="search_container"><input id="search" placeholder="Search" type="search" name="query[]" style="width:98%;">
</th>
</tr>
</thead>
<tbody class='exact_matches' id='exact_matches'>
</tbody>
Expand All @@ -52,6 +51,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#index</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -65,6 +67,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p><span class="text__underline">books#create</span></p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name='new_book'>
Expand All @@ -79,6 +84,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#new</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name='edit_book'>
Expand All @@ -93,6 +101,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#edit</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name='book'>
Expand All @@ -107,6 +118,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#show</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -120,6 +134,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#update</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -133,6 +150,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#update</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
<tr class='route_row' data-helper='path'>
<td data-route-name=''>
Expand All @@ -146,6 +166,9 @@ <h2 class="box__headline">リクエスト</h2>
<td>
<p>books#destroy</p>
</td>
<td>
/Users/igaiga/books_app/config/routes.rb:2
</td>
</tr>
</tbody>
</table>
Expand Down
Loading