Commit MetaInfo

Revisão1f232385116d946b184a78229c7843f856f8ca62 (tree)
Hora2014-03-12 13:57:57
AutorTatsuki Sugiura <sugi@nemu...>
CommiterTatsuki Sugiura

Mensagem de Log

Add hello controller.

Mudança Sumário

Diff

--- /dev/null
+++ b/app/assets/javascripts/hello.js.coffee
@@ -0,0 +1,3 @@
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/
--- /dev/null
+++ b/app/assets/stylesheets/hello.css.scss
@@ -0,0 +1,3 @@
1+// Place all the styles related to the hello controller here.
2+// They will automatically be included in application.css.
3+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+++ b/app/controllers/hello_controller.rb
@@ -0,0 +1,4 @@
1+class HelloController < ApplicationController
2+ def index
3+ end
4+end
--- /dev/null
+++ b/app/helpers/hello_helper.rb
@@ -0,0 +1,2 @@
1+module HelloHelper
2+end
--- /dev/null
+++ b/app/views/hello/index.html.erb
@@ -0,0 +1,2 @@
1+<h1>Hello#index</h1>
2+<p>Find me in app/views/hello/index.html.erb</p>
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -1,4 +1,5 @@
11 Hello::Application.routes.draw do
2+ get "hello/index"
23 # The priority is based upon order of creation: first created -> highest priority.
34 # See how all your routes lay out with "rake routes".
45
--- /dev/null
+++ b/test/controllers/hello_controller_test.rb
@@ -0,0 +1,9 @@
1+require 'test_helper'
2+
3+class HelloControllerTest < ActionController::TestCase
4+ test "should get index" do
5+ get :index
6+ assert_response :success
7+ end
8+
9+end
--- /dev/null
+++ b/test/helpers/hello_helper_test.rb
@@ -0,0 +1,4 @@
1+require 'test_helper'
2+
3+class HelloHelperTest < ActionView::TestCase
4+end
Show on old repository browser