Welcome controller added
Can be used for main index, about page etc.
This commit is contained in:
parent
741bf5d4e4
commit
f28c637d10
6 changed files with 22 additions and 0 deletions
3
app/assets/javascripts/welcome.js.coffee
Normal file
3
app/assets/javascripts/welcome.js.coffee
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://coffeescript.org/
|
||||
3
app/assets/stylesheets/welcome.css.scss
Normal file
3
app/assets/stylesheets/welcome.css.scss
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
// Place all the styles related to the welcome controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
4
app/controllers/welcome_controller.rb
Normal file
4
app/controllers/welcome_controller.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
class WelcomeController < ApplicationController
|
||||
def index
|
||||
end
|
||||
end
|
||||
2
app/helpers/welcome_helper.rb
Normal file
2
app/helpers/welcome_helper.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
module WelcomeHelper
|
||||
end
|
||||
1
app/views/welcome/index.html.erb
Normal file
1
app/views/welcome/index.html.erb
Normal file
|
|
@ -0,0 +1 @@
|
|||
<h1>Hello, Rails!</h1>
|
||||
9
test/controllers/welcome_controller_test.rb
Normal file
9
test/controllers/welcome_controller_test.rb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
require 'test_helper'
|
||||
|
||||
class WelcomeControllerTest < ActionController::TestCase
|
||||
test "should get index" do
|
||||
get :index
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue