Skip to content
This repository was archived by the owner on May 31, 2018. It is now read-only.

Commit 546fede

Browse files
author
Dimitri Koval
committed
Add pages controller
1 parent 464fe28 commit 546fede

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

app/controllers/pages_controller.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class PagesController < ApplicationController
2+
def landing
3+
end
4+
end

app/views/layouts/application.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
99
</head>
1010

11-
<body>
11+
<body id="app">
1212
<%= yield %>
1313
</body>
1414
</html>

app/views/pages/landing.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<hello name="Vue"></hello>

config/routes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
Rails.application.routes.draw do
2+
root to: 'pages#landing'
3+
24
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
35
end

0 commit comments

Comments
 (0)