Commit 83db9837 by tady

不要なshowページ削除

parent c339ce73
......@@ -5,16 +5,6 @@ class PostsController < ApplicationController
include RV::Mailer
# GET /posts
# GET /posts.json
def index
if params[:q].present?
@posts = Post.search(params[:q]).limit(10)
else
@posts = Post.order(updated_at: :desc).limit(10)
end
end
# GET /posts/1
# GET /posts/1.json
def show
......
class TagsController < ApplicationController
before_action :set_tag, only: [:show, :edit, :update, :destroy, :merge_to, :move_to, :events]
def index
end
def show
end
......
......@@ -3,6 +3,7 @@ Rendezvous::Application.routes.draw do
post 'apis/markdown_preview'
post 'apis/file_receiver'
get 'apis/user_mention'
get 'tags/:name/events' => 'tags#events', as: 'event_tag'
root 'welcome#top', as: 'root'
......@@ -15,32 +16,17 @@ Rendezvous::Application.routes.draw do
post 'posts/:id/mail' => 'posts#mail', as: 'mail_post'
post 'posts/:id/comment' => 'posts#comment', as: 'comment_post'
get 'posts/:id/slideshow' => 'posts#slideshow', as: 'slideshow_post'
resources :posts
resources :posts, except: [:index]
post 'tags/:name/merge_to/:merge_to_name' => 'tags#merge_to', as: 'merge_to_tag'
post 'tags/:name/move_to/:move_to_name' => 'tags#move_to', as: 'move_to_tag'
resources :tags, :param => :name
# resource :user, :only => [:edit, :update]
# devise_for :users , controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
# devise_for :users , only: [:sign_in, :sign_out, :session]
resources :tags, :param => :name, except: [:index]
devise_for :users,
path_names: { current_user: 'me' },
controllers: { omniauth_callbacks: 'users/omniauth_callbacks' },
skip: [:passwords]
# , controllers: { omniauth_callbacks: 'users/omniauth_callbacks' } # , skip: [:sessions]
# devise_scope :user do
# get 'sign_in', to: 'users/sessions#new', as: :new_user_session
# delete 'sign_out', to: 'devise/sessions#destroy', as: :sign_out
# end
# get 'users/edit' => 'users#edit', as: 'edit_user'
# post 'users/update' => 'users#update', as: 'update_user'
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment