diff options
author | Rhenium <rhenium@rhe.jp> | 2013-10-22 10:19:06 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2013-10-22 10:19:06 +0900 |
commit | 0627ef9c6dc9985b8a14b1ea796186c4f67cf2ba (patch) | |
tree | db3fb90a5de197c37362307fc7b05cbe335dd6ef | |
parent | ed168341c8c6b45df5022bb72a94066e2631303e (diff) | |
download | aclog-0627ef9c6dc9985b8a14b1ea796186c4f67cf2ba.tar.gz |
remove Issue model completely
-rw-r--r-- | app/controllers/issues_countroller.rb | 15 | ||||
-rw-r--r-- | app/views/issues/index.html.haml | 17 | ||||
-rw-r--r-- | config/routes.rb | 3 |
3 files changed, 0 insertions, 35 deletions
diff --git a/app/controllers/issues_countroller.rb b/app/controllers/issues_countroller.rb deleted file mode 100644 index f7e0135..0000000 --- a/app/controllers/issues_countroller.rb +++ /dev/null @@ -1,15 +0,0 @@ -# -*- coding: utf-8 -*- -class IssuesController < ApplicationController - layout "index" - def index - # いんでっくす - end - - private - def get_tweet_id(str) - case str - when /^(?:(?:https?:\/\/)?(?:(?:www\.)?twitter\.com|aclog\.koba789\.com)\/(?:i\/|[0-9A-Za-z_]{1,15}\/status(?:es)?\/))?(\d+)/ - $1.to_i - end - end -end diff --git a/app/views/issues/index.html.haml b/app/views/issues/index.html.haml deleted file mode 100644 index 1ed4ca3..0000000 --- a/app/views/issues/index.html.haml +++ /dev/null @@ -1,17 +0,0 @@ -/%h1 パクリツイートの報告 -/%p -/ まだ準備中です。全く同一のツイートのみしか対応しておりません。 -/%hr -/= form_tag({:controller => "report", :action => "tweet"}, {:method => :post, :class => "form-horizontal"}) do -/ .control-group -/ = label_tag "tweet_id_0", "ツイート1", :class => "control-label" -/ .controls -/ = text_field_tag "tweet_id_0", params[:tweet_id_0], :style => "width: 100%" -/ .control-group -/ = label_tag "tweet_id_1", "ツイート2", :class => "control-label" -/ .controls -/ = text_field_tag "tweet_id_1", params[:tweet_id_1], :style => "width: 100%" -/ .control-group -/ .controls -/ = submit_tag "送信", :name => nil, :class => "btn" -/ diff --git a/config/routes.rb b/config/routes.rb index 6075703..1671ae0 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -14,9 +14,6 @@ Aclog::Application.routes.draw do get "/i/callback" => "sessions#callback" get "/i/logout" => "sessions#destroy", as: "logout" - # ReportController - get "/i/report" => "report#index", as: "report" - get "/i/:id" => "tweets#show", as: "tweet", constraints: {id: /\d+/} scope "/i/settings", controller: "settings" do |