teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

誤字の修正

2018/09/14 03:26

投稿

ko-u
ko-u

スコア61

title CHANGED
File without changes
body CHANGED
@@ -55,7 +55,7 @@
55
55
  </body>
56
56
  </html>
57
57
 
58
- **layout/home.html.erb**
58
+ **static_pages/home.html.erb**
59
59
  <div class="center jumbotron">
60
60
  <h1>Welcome to the Sample App</h1>
61
61
 

1

追記

2018/09/14 03:25

投稿

ko-u
ko-u

スコア61

title CHANGED
File without changes
body CHANGED
@@ -55,35 +55,22 @@
55
55
  </body>
56
56
  </html>
57
57
 
58
- **layout/_footer.html.erb**
58
+ **layout/home.html.erb**
59
- <footer class="footer">
59
+ <div class="center jumbotron">
60
- <small>
61
- The <a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
62
- by <a href="http://www.michaelhartl.com/">Michael Hartl</a>
63
- </small>
64
- <nav>
65
- <ul>
66
- <li><%= link_to "About", about_path %></li>
60
+ <h1>Welcome to the Sample App</h1>
67
- <li><%= link_to "Contact", contact_path %></li>
68
- <li><a href="http://news.railstutorial.org/">News</a></li>
69
- </ul>
70
- </nav>
71
- </footer>
72
61
 
73
- **layout/_header.html.erb**
74
- <header class="navbar navbar-fixed-top navbar-inverse">
75
- <div class="container">
76
- <%= link_to "sample app", root_path, id: "logo" %>
77
- <nav>
62
+ <h2>
78
- <ul class="nav navbar-nav navbar-right">
63
+ This is the home page for the
79
- <li><%= link_to "Home", root_path %></li>
64
+ <a href="https://railstutorial.jp/">Ruby on Rails Tutorial</a>
80
- <li><%= link_to "Help", help_path %></li>
65
+ sample application.
81
- <li><%= link_to "Log in", '#' %></li>
82
- </ul>
66
+ </h2>
83
- </nav>
84
- </div>
85
- </header>
86
67
 
68
+ <%= link_to "Sign up now!", '#', class: "btn btn-lg btn-primary" %>
69
+ </div>
87
70
 
71
+ <%= link_to image_tag("rails.png", alt: "Rails logo"),
72
+ 'http://rubyonrails.org/' %>
73
+
74
+
88
75
  以上です。
89
76
  よろしくお願い致します。