changeset 8:86abbc9ce81b

Add static controller.
author edogawaconan <me@myconan.net>
date Fri, 05 Sep 2014 18:33:22 +0900
parents a9d5b12a291f
children b99cc8a7abec
files app/controllers/static_controller.rb app/views/static/index.html.erb test/controllers/static_controller_test.rb
diffstat 3 files changed, 26 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/controllers/static_controller.rb	Fri Sep 05 18:33:22 2014 +0900
@@ -0,0 +1,4 @@
+class StaticController < ApplicationController
+  def index
+  end
+end
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/app/views/static/index.html.erb	Fri Sep 05 18:33:22 2014 +0900
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<head>
+  <title>rsstweet</title>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+</head>
+<body>
+  <h1>rsstweet</h1>
+  <p>Proxying any user's tweet for usage with RSS readers</p>
+  <ul>
+    <li>
+      Source: <a href="http://bitbucket.org/edogawaconan/rsstweet">Bitbucket</a>
+    </li>
+  </ul>
+</body>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/test/controllers/static_controller_test.rb	Fri Sep 05 18:33:22 2014 +0900
@@ -0,0 +1,8 @@
+require 'test_helper'
+
+class StaticControllerTest < ActionController::TestCase
+  test "should get index" do
+    get :index
+    assert_response :success
+  end
+end