Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rendezvous
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VeNtura
rendezvous
Commits
83db9837
Commit
83db9837
authored
Apr 22, 2014
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
不要なshowページ削除
parent
c339ce73
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
30 deletions
+3
-30
app/controllers/posts_controller.rb
+0
-10
app/controllers/tags_controller.rb
+0
-3
config/routes.rb
+3
-17
No files found.
app/controllers/posts_controller.rb
View file @
83db9837
...
@@ -5,16 +5,6 @@ class PostsController < ApplicationController
...
@@ -5,16 +5,6 @@ class PostsController < ApplicationController
include
RV
::
Mailer
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
# GET /posts/1.json
# GET /posts/1.json
def
show
def
show
...
...
app/controllers/tags_controller.rb
View file @
83db9837
class
TagsController
<
ApplicationController
class
TagsController
<
ApplicationController
before_action
:set_tag
,
only:
[
:show
,
:edit
,
:update
,
:destroy
,
:merge_to
,
:move_to
,
:events
]
before_action
:set_tag
,
only:
[
:show
,
:edit
,
:update
,
:destroy
,
:merge_to
,
:move_to
,
:events
]
def
index
end
def
show
def
show
end
end
...
...
config/routes.rb
View file @
83db9837
...
@@ -3,6 +3,7 @@ Rendezvous::Application.routes.draw do
...
@@ -3,6 +3,7 @@ Rendezvous::Application.routes.draw do
post
'apis/markdown_preview'
post
'apis/markdown_preview'
post
'apis/file_receiver'
post
'apis/file_receiver'
get
'apis/user_mention'
get
'apis/user_mention'
get
'tags/:name/events'
=>
'tags#events'
,
as:
'event_tag'
get
'tags/:name/events'
=>
'tags#events'
,
as:
'event_tag'
root
'welcome#top'
,
as:
'root'
root
'welcome#top'
,
as:
'root'
...
@@ -15,32 +16,17 @@ Rendezvous::Application.routes.draw do
...
@@ -15,32 +16,17 @@ Rendezvous::Application.routes.draw do
post
'posts/:id/mail'
=>
'posts#mail'
,
as:
'mail_post'
post
'posts/:id/mail'
=>
'posts#mail'
,
as:
'mail_post'
post
'posts/:id/comment'
=>
'posts#comment'
,
as:
'comment_post'
post
'posts/:id/comment'
=>
'posts#comment'
,
as:
'comment_post'
get
'posts/:id/slideshow'
=>
'posts#slideshow'
,
as:
'slideshow_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/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'
post
'tags/:name/move_to/:move_to_name'
=>
'tags#move_to'
,
as:
'move_to_tag'
resources
:tags
,
:param
=>
:name
resources
:tags
,
:param
=>
:name
,
except:
[
:index
]
# resource :user, :only => [:edit, :update]
# devise_for :users , controllers: { omniauth_callbacks: 'users/omniauth_callbacks' }
# devise_for :users , only: [:sign_in, :sign_out, :session]
devise_for
:users
,
devise_for
:users
,
path_names:
{
current_user:
'me'
},
path_names:
{
current_user:
'me'
},
controllers:
{
omniauth_callbacks:
'users/omniauth_callbacks'
},
controllers:
{
omniauth_callbacks:
'users/omniauth_callbacks'
},
skip:
[
:passwords
]
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.
# The priority is based upon order of creation: first created -> highest priority.
# See how all your routes lay out with "rake routes".
# See how all your routes lay out with "rake routes".
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment