Skip to content

Commit ce63b4a

Browse files
committed
rebuilding site 2019年12月25日 星期三 16时45分10秒 CST
1 parent 2250e38 commit ce63b4a

File tree

17 files changed

+836
-76
lines changed

17 files changed

+836
-76
lines changed

categories/index.html

+15
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,21 @@ <h2 class="f1">
192192
</a>
193193
</h2>
194194

195+
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
196+
<div class="bg-white mb3 pa4 gray overflow-hidden">
197+
<span class="f6 db">Posts</span>
198+
<h1 class="f3 near-black">
199+
<a href="https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/" class="link black dim">
200+
搭建Jira 已破解
201+
</a>
202+
</h1>
203+
<div class="nested-links f5 lh-copy nested-copy-line-height">
204+
参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi
205+
</div>
206+
</div>
207+
</div>
208+
209+
195210
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
196211
<div class="bg-white mb3 pa4 gray overflow-hidden">
197212
<span class="f6 db">Posts</span>

categories/index.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<item>
2323
<title>技术</title>
2424
<link>https://johnnyting.github.io/categories/%E6%8A%80%E6%9C%AF/</link>
25-
<pubDate>Wed, 27 Nov 2019 16:59:43 +0800</pubDate>
25+
<pubDate>Wed, 25 Dec 2019 16:31:34 +0800</pubDate>
2626

2727
<guid>https://johnnyting.github.io/categories/%E6%8A%80%E6%9C%AF/</guid>
2828
<description></description>

categories/技术/index.html

+18-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<meta property="og:description" content="程序员的日常。。" />
3939
<meta property="og:type" content="website" />
4040
<meta property="og:url" content="https://johnnyting.github.io/categories/%E6%8A%80%E6%9C%AF/" />
41-
<meta property="og:updated_time" content="2019-11-27T16:59:43&#43;08:00"/>
41+
<meta property="og:updated_time" content="2019-12-25T16:31:34&#43;08:00"/>
4242

4343
<meta itemprop="name" content="技术">
4444
<meta itemprop="description" content="程序员的日常。。">
@@ -167,6 +167,23 @@ <h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
167167
<div class="relative w-100 mb4 bg-white">
168168
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
169169
<div class="bg-white mb3 pa4 gray overflow-hidden">
170+
<span class="f6 db">Posts</span>
171+
<h1 class="f3 near-black">
172+
<a href="https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/" class="link black dim">
173+
搭建Jira 已破解
174+
</a>
175+
</h1>
176+
<div class="nested-links f5 lh-copy nested-copy-line-height">
177+
参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi
178+
</div>
179+
</div>
180+
</div>
181+
182+
</div>
183+
184+
<div class="relative w-100 mb4 bg-white">
185+
<div class="relative w-100 mb4 bg-white nested-copy-line-height">
186+
<div class="bg-white mb3 pa4 gray overflow-hidden">
170187
<span class="f6 db">Posts</span>
171188
<h1 class="f3 near-black">
172189
<a href="https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/" class="link black dim">

categories/技术/index.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@
66
<description>Recent content in 技术 on Johnny Ting</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>zh-CN</language>
9-
<lastBuildDate>Wed, 27 Nov 2019 16:59:43 +0800</lastBuildDate>
9+
<lastBuildDate>Wed, 25 Dec 2019 16:31:34 +0800</lastBuildDate>
1010

1111
<atom:link href="https://johnnyting.github.io/categories/%E6%8A%80%E6%9C%AF/index.xml" rel="self" type="application/rss+xml" />
1212

1313

14+
<item>
15+
<title>搭建Jira 已破解</title>
16+
<link>https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/</link>
17+
<pubDate>Wed, 25 Dec 2019 16:31:34 +0800</pubDate>
18+
19+
<guid>https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/</guid>
20+
<description>参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi</description>
21+
</item>
22+
1423
<item>
1524
<title>生产环境内存泄露分析</title>
1625
<link>https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/</link>

index.html

+19-19
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<meta property="og:description" content="程序员的日常。。" />
3939
<meta property="og:type" content="website" />
4040
<meta property="og:url" content="https://johnnyting.github.io/" />
41-
<meta property="og:updated_time" content="2019-11-27T16:59:43&#43;08:00"/>
41+
<meta property="og:updated_time" content="2019-12-25T16:31:34&#43;08:00"/>
4242

4343
<meta itemprop="name" content="Johnny Ting">
4444
<meta itemprop="description" content="程序员的日常。。">
@@ -190,14 +190,14 @@ <h1 class="flex-none">
190190

191191
<div class="blah w-100">
192192
<h1 class="f3 fw1 athelas mt0 lh-title">
193-
<a href="https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/" class="color-inherit dim link">
194-
生产环境内存泄露分析
193+
<a href="https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/" class="color-inherit dim link">
194+
搭建Jira 已破解
195195
</a>
196196
</h1>
197197
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
198-
项目基础架构: Java+gRPC+Rails 因生产环境频繁出现宕机的情况,平均一周需要重启下服务器,这谁顶得住啊。。这个问题必须解决。在开始分析问题之前,我们先重启一次
198+
参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi
199199
</div>
200-
<a href="https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
200+
<a href="https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
201201

202202
</div>
203203
</div>
@@ -214,14 +214,14 @@ <h1 class="f3 fw1 athelas mt0 lh-title">
214214

215215
<div class="blah w-100">
216216
<h1 class="f3 fw1 athelas mt0 lh-title">
217-
<a href="https://johnnyting.github.io/posts/sidekiq%E5%90%8E%E5%8F%B0%E4%BB%BB%E5%8A%A1%E7%9A%84%E7%AE%80%E5%8D%95%E9%85%8D%E7%BD%AE/" class="color-inherit dim link">
218-
Sidekiq后台任务的简单配置
217+
<a href="https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/" class="color-inherit dim link">
218+
生产环境内存泄露分析
219219
</a>
220220
</h1>
221221
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
222-
reference: sidekiq官方文档 ruby-china sidekiq-cron 1.本地安装redis,macos这里使用homebrew安装 =&gt; brew install redis To have launchd start redis now and restart at login: brew services start redis Or, if you don't want/need a background
222+
项目基础架构: Java+gRPC+Rails 因生产环境频繁出现宕机的情况,平均一周需要重启下服务器,这谁顶得住啊。。这个问题必须解决。在开始分析问题之前,我们先重启一次
223223
</div>
224-
<a href="https://johnnyting.github.io/posts/sidekiq%E5%90%8E%E5%8F%B0%E4%BB%BB%E5%8A%A1%E7%9A%84%E7%AE%80%E5%8D%95%E9%85%8D%E7%BD%AE/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
224+
<a href="https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
225225

226226
</div>
227227
</div>
@@ -238,14 +238,14 @@ <h1 class="f3 fw1 athelas mt0 lh-title">
238238

239239
<div class="blah w-100">
240240
<h1 class="f3 fw1 athelas mt0 lh-title">
241-
<a href="https://johnnyting.github.io/posts/%E4%BF%AE%E6%94%B9puma%E6%BA%90%E7%A0%81%E4%B8%ADget%E8%AF%B7%E6%B1%82%E5%9C%B0%E5%9D%80%E9%95%BF%E5%BA%A6%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/" class="color-inherit dim link">
242-
修改puma源码中GET请求地址长度的最大值
241+
<a href="https://johnnyting.github.io/posts/sidekiq%E5%90%8E%E5%8F%B0%E4%BB%BB%E5%8A%A1%E7%9A%84%E7%AE%80%E5%8D%95%E9%85%8D%E7%BD%AE/" class="color-inherit dim link">
242+
Sidekiq后台任务的简单配置
243243
</a>
244244
</h1>
245245
<div class="f6 f5-l lh-copy nested-copy-line-height nested-links">
246-
说一下我遇到的问题,在一个GET请求的接口中,由于请求字符串太长而导致的错误,因为是之前的旧项目,如果将接口改成POST请求的话,很多地方都
246+
reference: sidekiq官方文档 ruby-china sidekiq-cron 1.本地安装redis,macos这里使用homebrew安装 =&gt; brew install redis To have launchd start redis now and restart at login: brew services start redis Or, if you don't want/need a background
247247
</div>
248-
<a href="https://johnnyting.github.io/posts/%E4%BF%AE%E6%94%B9puma%E6%BA%90%E7%A0%81%E4%B8%ADget%E8%AF%B7%E6%B1%82%E5%9C%B0%E5%9D%80%E9%95%BF%E5%BA%A6%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
248+
<a href="https://johnnyting.github.io/posts/sidekiq%E5%90%8E%E5%8F%B0%E4%BB%BB%E5%8A%A1%E7%9A%84%E7%AE%80%E5%8D%95%E9%85%8D%E7%BD%AE/" class="ba b--moon-gray bg-light-gray br2 color-inherit dib f7 hover-bg-moon-gray link mt2 ph2 pv1">read more</a>
249249

250250
</div>
251251
</div>
@@ -261,6 +261,12 @@ <h1 class="f3 fw1 athelas mt0 lh-title">
261261
<h1 class="f3">More</h1>
262262

263263

264+
<h2 class="f5 fw4 mb4 dib mr3">
265+
<a href="https://johnnyting.github.io/posts/%E4%BF%AE%E6%94%B9puma%E6%BA%90%E7%A0%81%E4%B8%ADget%E8%AF%B7%E6%B1%82%E5%9C%B0%E5%9D%80%E9%95%BF%E5%BA%A6%E7%9A%84%E6%9C%80%E5%A4%A7%E5%80%BC/" class="link black dim">
266+
修改puma源码中GET请求地址长度的最大值
267+
</a>
268+
</h2>
269+
264270
<h2 class="f5 fw4 mb4 dib mr3">
265271
<a href="https://johnnyting.github.io/posts/%E5%BD%93%E5%89%8D%E7%AB%AF%E6%8E%A5%E5%8F%97json%E6%95%B0%E6%8D%AEkey%E4%B8%BA%E6%95%B0%E5%AD%97%E6%97%B6%E8%87%AA%E5%8A%A8%E6%8E%92%E5%BA%8F%E7%9A%84%E9%97%AE%E9%A2%98/" class="link black dim">
266272
当前端接受json数据key为数字时自动排序的问题
@@ -279,12 +285,6 @@ <h2 class="f5 fw4 mb4 dib mr3">
279285
</a>
280286
</h2>
281287

282-
<h2 class="f5 fw4 mb4 dib mr3">
283-
<a href="https://johnnyting.github.io/posts/%E4%BD%BF%E7%94%A8jenkinsdocker%E8%87%AA%E5%8A%A8%E5%8C%96%E9%83%A8%E7%BD%B2rails%E5%BA%94%E7%94%A8/" class="link black dim">
284-
使用jenkins、docker自动化部署rails应用
285-
</a>
286-
</h2>
287-
288288

289289

290290

index.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@
66
<description>Recent content on Johnny Ting</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>zh-CN</language>
9-
<lastBuildDate>Wed, 27 Nov 2019 16:59:43 +0800</lastBuildDate>
9+
<lastBuildDate>Wed, 25 Dec 2019 16:31:34 +0800</lastBuildDate>
1010

1111
<atom:link href="https://johnnyting.github.io/index.xml" rel="self" type="application/rss+xml" />
1212

1313

14+
<item>
15+
<title>搭建Jira 已破解</title>
16+
<link>https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/</link>
17+
<pubDate>Wed, 25 Dec 2019 16:31:34 +0800</pubDate>
18+
19+
<guid>https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/</guid>
20+
<description>参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi</description>
21+
</item>
22+
1423
<item>
1524
<title>生产环境内存泄露分析</title>
1625
<link>https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/</link>

posts/index.html

+16-16
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<meta property="og:description" content="程序员的日常。。" />
3939
<meta property="og:type" content="website" />
4040
<meta property="og:url" content="https://johnnyting.github.io/posts/" />
41-
<meta property="og:updated_time" content="2019-11-27T16:59:43&#43;08:00"/>
41+
<meta property="og:updated_time" content="2019-12-25T16:31:34&#43;08:00"/>
4242

4343
<meta itemprop="name" content="Posts">
4444
<meta itemprop="description" content="程序员的日常。。">
@@ -162,6 +162,21 @@ <h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
162162

163163
<div class="relative w-100 w-30-l mb4 bg-white"><div class="relative w-100 mb4 bg-white nested-copy-line-height">
164164
<div class="bg-white mb3 pa4 gray overflow-hidden">
165+
<span class="f6 db">Posts</span>
166+
<h1 class="f3 near-black">
167+
<a href="https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/" class="link black dim">
168+
搭建Jira 已破解
169+
</a>
170+
</h1>
171+
<div class="nested-links f5 lh-copy nested-copy-line-height">
172+
参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi
173+
</div>
174+
</div>
175+
</div>
176+
</div>
177+
178+
<div class="relative w-100 w-30-l mb4 bg-white"><div class="relative w-100 mb4 bg-white nested-copy-line-height">
179+
<div class="bg-white mb3 pa4 gray overflow-hidden">
165180
<span class="f6 db">Posts</span>
166181
<h1 class="f3 near-black">
167182
<a href="https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/" class="link black dim">
@@ -293,21 +308,6 @@ <h1 class="f3 near-black">
293308
</div>
294309
</div>
295310
</div>
296-
</div>
297-
298-
<div class="relative w-100 w-30-l mb4 bg-white"><div class="relative w-100 mb4 bg-white nested-copy-line-height">
299-
<div class="bg-white mb3 pa4 gray overflow-hidden">
300-
<span class="f6 db">Posts</span>
301-
<h1 class="f3 near-black">
302-
<a href="https://johnnyting.github.io/posts/rails%E4%BB%8E%E5%AF%B9%E8%B1%A1%E6%88%96%E8%80%85hash%E4%B8%AD%E8%8E%B7%E5%8F%96%E5%8E%BB%E9%99%A4%E6%9F%90%E4%BA%9B%E5%B1%9E%E6%80%A7/" class="link black dim">
303-
Rails从对象或者hash中获取、去除某些属性
304-
</a>
305-
</h1>
306-
<div class="nested-links f5 lh-copy nested-copy-line-height">
307-
1.在ActiveRecord中获取指定属性值,slice会获取指定属性后再转换成hash 通常的做法 class Permission &lt; ApplicationRecord has_and_belongs_to_many :role_tpls def to_json { resource: self.resource, status: self.status, name: self.name, allow: self.allow } end end
308-
</div>
309-
</div>
310-
</div>
311311
</div>
312312

313313
</section>

posts/index.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,20 @@
66
<description>Recent content in Posts on Johnny Ting</description>
77
<generator>Hugo -- gohugo.io</generator>
88
<language>zh-CN</language>
9-
<lastBuildDate>Wed, 27 Nov 2019 16:59:43 +0800</lastBuildDate>
9+
<lastBuildDate>Wed, 25 Dec 2019 16:31:34 +0800</lastBuildDate>
1010

1111
<atom:link href="https://johnnyting.github.io/posts/index.xml" rel="self" type="application/rss+xml" />
1212

1313

14+
<item>
15+
<title>搭建Jira 已破解</title>
16+
<link>https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/</link>
17+
<pubDate>Wed, 25 Dec 2019 16:31:34 +0800</pubDate>
18+
19+
<guid>https://johnnyting.github.io/posts/%E6%90%AD%E5%BB%BAjira-%E5%B7%B2%E7%A0%B4%E8%A7%A3/</guid>
20+
<description>参考链接 1.下载Jira wget https://product-downloads.atlassian.com/software/jira/downloads/atlassian-jira-software-8.0.2.tar.gz 2.解压 tar -zxvf atlassian-jira-software-8.0.2.tar.gz 3.下载数据库对应的jdbc驱动,对应目录/home/uugm/workspace/atlassi</description>
21+
</item>
22+
1423
<item>
1524
<title>生产环境内存泄露分析</title>
1625
<link>https://johnnyting.github.io/posts/%E7%94%9F%E4%BA%A7%E7%8E%AF%E5%A2%83%E5%86%85%E5%AD%98%E6%B3%84%E9%9C%B2%E5%88%86%E6%9E%90/</link>

posts/page/2/index.html

+16-16
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<meta property="og:description" content="程序员的日常。。" />
3939
<meta property="og:type" content="website" />
4040
<meta property="og:url" content="https://johnnyting.github.io/posts/" />
41-
<meta property="og:updated_time" content="2019-05-11T18:33:21&#43;08:00"/>
41+
<meta property="og:updated_time" content="2019-05-13T15:55:12&#43;08:00"/>
4242

4343
<meta itemprop="name" content="Posts">
4444
<meta itemprop="description" content="程序员的日常。。">
@@ -162,6 +162,21 @@ <h1 class="f2 f-subheadline-l fw2 white-90 mb0 lh-title">
162162

163163
<div class="relative w-100 w-30-l mb4 bg-white"><div class="relative w-100 mb4 bg-white nested-copy-line-height">
164164
<div class="bg-white mb3 pa4 gray overflow-hidden">
165+
<span class="f6 db">Posts</span>
166+
<h1 class="f3 near-black">
167+
<a href="https://johnnyting.github.io/posts/rails%E4%BB%8E%E5%AF%B9%E8%B1%A1%E6%88%96%E8%80%85hash%E4%B8%AD%E8%8E%B7%E5%8F%96%E5%8E%BB%E9%99%A4%E6%9F%90%E4%BA%9B%E5%B1%9E%E6%80%A7/" class="link black dim">
168+
Rails从对象或者hash中获取、去除某些属性
169+
</a>
170+
</h1>
171+
<div class="nested-links f5 lh-copy nested-copy-line-height">
172+
1.在ActiveRecord中获取指定属性值,slice会获取指定属性后再转换成hash 通常的做法 class Permission &lt; ApplicationRecord has_and_belongs_to_many :role_tpls def to_json { resource: self.resource, status: self.status, name: self.name, allow: self.allow } end end
173+
</div>
174+
</div>
175+
</div>
176+
</div>
177+
178+
<div class="relative w-100 w-30-l mb4 bg-white"><div class="relative w-100 mb4 bg-white nested-copy-line-height">
179+
<div class="bg-white mb3 pa4 gray overflow-hidden">
165180
<span class="f6 db">Posts</span>
166181
<h1 class="f3 near-black">
167182
<a href="https://johnnyting.github.io/posts/rails%E4%B8%ADtry%E7%9A%84%E7%94%A8%E6%B3%95/" class="link black dim">
@@ -293,21 +308,6 @@ <h1 class="f3 near-black">
293308
</div>
294309
</div>
295310
</div>
296-
</div>
297-
298-
<div class="relative w-100 w-30-l mb4 bg-white"><div class="relative w-100 mb4 bg-white nested-copy-line-height">
299-
<div class="bg-white mb3 pa4 gray overflow-hidden">
300-
<span class="f6 db">Posts</span>
301-
<h1 class="f3 near-black">
302-
<a href="https://johnnyting.github.io/posts/ruby%E4%B8%AD%E7%9A%84%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA/" class="link black dim">
303-
第十五章、ruby中的输入输出
304-
</a>
305-
</h1>
306-
<div class="nested-links f5 lh-copy nested-copy-line-height">
307-
Ruby的输入&amp;输出 这部分的教程我们讨论Ruby的输入和输出操作。输入是程序从键盘、文件或者其他程序读取数据。输出是程序产生数据。可
308-
</div>
309-
</div>
310-
</div>
311311
</div>
312312

313313
</section>

0 commit comments

Comments
 (0)