From 1c18e9221907bbcea0256f7ad0b53975d8997052 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Sun, 30 Sep 2018 08:11:41 +0000 Subject: [PATCH 1/3] =?UTF-8?q?=E3=83=88=E3=83=83=E3=83=97=E3=83=9A?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=81=AB=E3=82=A2=E3=82=AF=E3=82=BB=E3=82=B9?= =?UTF-8?q?=E3=81=97=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AB=E5=8B=95=E3=81=8F?= =?UTF-8?q?=E3=82=A2=E3=82=AF=E3=82=B7=E3=83=A7=E3=83=B3=E3=82=92=E8=A8=AD?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 57 ++---------------------------------------------- 1 file changed, 2 insertions(+), 55 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 3f66539..b7dccaf 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,56 +1,3 @@ Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end + root 'tweets#index' +end \ No newline at end of file From 4b34e44eba37df2c178eb32cd2dffdfbb7aa99f1 Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Sun, 30 Sep 2018 08:55:36 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=E3=82=B3=E3=83=B3=E3=83=88=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=83=A9=E3=81=A8=E9=96=A2=E9=80=A3=E3=83=95=E3=82=A1?= =?UTF-8?q?=E3=82=A4=E3=83=AB=E3=81=AE=E4=BD=9C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/assets/javascripts/tweets.coffee | 3 +++ app/assets/stylesheets/tweets.css.scss | 3 +++ app/controllers/tweets_controller.rb | 2 ++ app/helpers/tweets_helper.rb | 2 ++ app/views/tweets/index.html.erb | 1 + test/controllers/tweets_controller_test.rb | 7 +++++++ 6 files changed, 18 insertions(+) create mode 100644 app/assets/javascripts/tweets.coffee create mode 100644 app/assets/stylesheets/tweets.css.scss create mode 100644 app/controllers/tweets_controller.rb create mode 100644 app/helpers/tweets_helper.rb create mode 100644 app/views/tweets/index.html.erb create mode 100644 test/controllers/tweets_controller_test.rb diff --git a/app/assets/javascripts/tweets.coffee b/app/assets/javascripts/tweets.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/app/assets/javascripts/tweets.coffee @@ -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/ diff --git a/app/assets/stylesheets/tweets.css.scss b/app/assets/stylesheets/tweets.css.scss new file mode 100644 index 0000000..e19d998 --- /dev/null +++ b/app/assets/stylesheets/tweets.css.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the tweets controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/tweets_controller.rb b/app/controllers/tweets_controller.rb new file mode 100644 index 0000000..14a5e84 --- /dev/null +++ b/app/controllers/tweets_controller.rb @@ -0,0 +1,2 @@ +class TweetsController < ApplicationController +end diff --git a/app/helpers/tweets_helper.rb b/app/helpers/tweets_helper.rb new file mode 100644 index 0000000..6b7d657 --- /dev/null +++ b/app/helpers/tweets_helper.rb @@ -0,0 +1,2 @@ +module TweetsHelper +end diff --git a/app/views/tweets/index.html.erb b/app/views/tweets/index.html.erb new file mode 100644 index 0000000..b6fc4c6 --- /dev/null +++ b/app/views/tweets/index.html.erb @@ -0,0 +1 @@ +hello \ No newline at end of file diff --git a/test/controllers/tweets_controller_test.rb b/test/controllers/tweets_controller_test.rb new file mode 100644 index 0000000..2016d51 --- /dev/null +++ b/test/controllers/tweets_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TweetsControllerTest < ActionController::TestCase + # test "the truth" do + # assert true + # end +end From 6c3ee6f350dd174f420aad5ee7ea467b7a566a6c Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Sun, 30 Sep 2018 08:56:18 +0000 Subject: [PATCH 3/3] =?UTF-8?q?tweets=E3=82=B3=E3=83=B3=E3=83=88=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=83=A9=E3=81=ABindex=E3=82=A2=E3=82=AF=E3=82=B7?= =?UTF-8?q?=E3=83=A7=E3=83=B3=E3=82=92=E5=AE=9A=E7=BE=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/tweets_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/tweets_controller.rb b/app/controllers/tweets_controller.rb index 14a5e84..ca769cd 100644 --- a/app/controllers/tweets_controller.rb +++ b/app/controllers/tweets_controller.rb @@ -1,2 +1,4 @@ class TweetsController < ApplicationController -end + def index + end +end \ No newline at end of file