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
db93b5d9
Commit
db93b5d9
authored
Dec 25, 2013
by
tady
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
%Nameで名前置換
parent
88046d32
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
app/controllers/posts_controller.rb
+7
-0
No files found.
app/controllers/posts_controller.rb
View file @
db93b5d9
...
...
@@ -42,6 +42,13 @@ class PostsController < ApplicationController
@post
=
Post
.
new
end
def
fork
@post
=
set_post
.
clone
@post
.
title
=
@post
.
title
.
gsub
(
/%Name/
,
current_user
.
name
)
@post
.
title
=
Time
.
now
.
strftime
(
@post
.
title
)
# TODO
render
action:
'new'
end
# GET /posts/1/edit
def
edit
end
...
...
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