Welcome controller added

Can be used for main index, about page etc.
This commit is contained in:
Christoph Haas 2013-07-27 01:23:08 +02:00
parent 741bf5d4e4
commit f28c637d10
6 changed files with 22 additions and 0 deletions

View 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/

View 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/

View file

@ -0,0 +1,4 @@
class WelcomeController < ApplicationController
def index
end
end

View file

@ -0,0 +1,2 @@
module WelcomeHelper
end

View file

@ -0,0 +1 @@
<h1>Hello, Rails!</h1>

View file

@ -0,0 +1,9 @@
require 'test_helper'
class WelcomeControllerTest < ActionController::TestCase
test "should get index" do
get :index
assert_response :success
end
end