# HG changeset patch # User edogawaconan # Date 1418280456 -32400 # Node ID 9e03bbbb1d436ed796b00caaddca55ebaef706a1 # Parent 81f23f5bf85dbb1769bb1fed6192546492ebb231 Move static#index to tweet#index. diff -r 81f23f5bf85d -r 9e03bbbb1d43 app/controllers/static_controller.rb --- a/app/controllers/static_controller.rb Thu Dec 11 15:44:51 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,4 +0,0 @@ -class StaticController < ApplicationController - def index - end -end diff -r 81f23f5bf85d -r 9e03bbbb1d43 app/controllers/tweets_controller.rb --- a/app/controllers/tweets_controller.rb Thu Dec 11 15:44:51 2014 +0900 +++ b/app/controllers/tweets_controller.rb Thu Dec 11 15:47:36 2014 +0900 @@ -1,4 +1,7 @@ class TweetsController < ApplicationController + def index + end + def show @tweets = Tweet.new(params[:id]).timeline diff -r 81f23f5bf85d -r 9e03bbbb1d43 app/views/static/index.html.erb --- a/app/views/static/index.html.erb Thu Dec 11 15:44:51 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,14 +0,0 @@ - - - rsstweet - - - -

rsstweet

-

Proxying any user's tweet for usage with RSS readers

- - diff -r 81f23f5bf85d -r 9e03bbbb1d43 app/views/tweets/index.html.erb --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/app/views/tweets/index.html.erb Thu Dec 11 15:47:36 2014 +0900 @@ -0,0 +1,14 @@ + + + rsstweet + + + +

rsstweet

+

Proxying any user's tweet for usage with RSS readers

+ + diff -r 81f23f5bf85d -r 9e03bbbb1d43 config/routes.rb --- a/config/routes.rb Thu Dec 11 15:44:51 2014 +0900 +++ b/config/routes.rb Thu Dec 11 15:47:36 2014 +0900 @@ -3,7 +3,7 @@ # See how all your routes lay out with "rake routes". # You can have the root of your site routed with "root" - root "static#index" + root "tweets#index" get "*id" => "tweets#show", :defaults => { :format => :atom } diff -r 81f23f5bf85d -r 9e03bbbb1d43 test/controllers/static_controller_test.rb --- a/test/controllers/static_controller_test.rb Thu Dec 11 15:44:51 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,8 +0,0 @@ -require "test_helper" - -class StaticControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end -end diff -r 81f23f5bf85d -r 9e03bbbb1d43 test/controllers/tweets_controller_test.rb --- a/test/controllers/tweets_controller_test.rb Thu Dec 11 15:44:51 2014 +0900 +++ b/test/controllers/tweets_controller_test.rb Thu Dec 11 15:47:36 2014 +0900 @@ -5,4 +5,9 @@ get :show, :id => "edogawa_test", :format => :atom assert_response :success end + + test "should get index" do + get :index + assert_response :success + end end