Commit 7823fa38908814186a233e57caffdfc0fe5d06a8

Authored by Georg Hopp
1 parent f634df77

Generate welcome controller.

  1 +# Place all the behaviors and hooks related to the matching controller here.
  2 +# All this logic will automatically be available in application.js.
  3 +# You can use CoffeeScript in this file: http://coffeescript.org/
... ...
  1 +// Place all the styles related to the welcome controller here.
  2 +// They will automatically be included in application.css.
  3 +// You can use Sass (SCSS) here: http://sass-lang.com/
... ...
  1 +class WelcomeController < ApplicationController
  2 + def index
  3 + end
  4 +end
... ...
  1 +module WelcomeHelper
  2 +end
... ...
  1 +<h1>Welcome#index</h1>
  2 +<p>Find me in app/views/welcome/index.html.erb</p>
... ...
1 1 Rails.application.routes.draw do
  2 + get 'welcome/index'
  3 +
2 4 # The priority is based upon order of creation: first created -> highest priority.
3 5 # See how all your routes lay out with "rake routes".
4 6
... ...
  1 +require 'test_helper'
  2 +
  3 +class WelcomeControllerTest < ActionController::TestCase
  4 + test "should get index" do
  5 + get :index
  6 + assert_response :success
  7 + end
  8 +
  9 +end
... ...
Please register or login to post a comment