自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 资源 (1)
  • 收藏
  • 关注

原创 access json.jbuilder file in api

Missing template api/v2/subjects/fetch_subject, api/base/fetch_subject, application/fetch_subject with {:locale=>[:"zh-CN"], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder,

2017-01-23 12:59:48 486

原创 jbuilder 的 extract!

#json.id subject.id #json.title subject.title #json.sub_title subject.sub_title #json.categories subject.categories #json.description subject.description #json.status subject.statu

2017-01-23 11:21:21 290

原创 time format

> Time.now.strftime('%Y-%m-%d %H:%M:%S')=> "2017-01-22 13:13:18"

2017-01-22 13:41:31 1635

原创 HASH的dig方法判断key是否存在及是否有值

dig(key, ...) → objectclick to toggle sourceExtracts the nested value specified by the sequence of idx objects by calling dig at each step, returning nil if any intermediate step is nil.

2017-01-22 11:05:54 1339

原创 单独合并新分支的一次提交进入某个分支

$ git checkout -b cibn-cache-cleanSwitched to a new branch 'cibn-cache-clean'$ git cherry-pick 9b78e3f6e70cf8ad9bd85b90e36819ea6a77ed32[cibn-cache-clean bd0c3d2] Add subject cache clear link

2017-01-14 17:55:08 672

原创 git 修改最后一次提交的用户名 或者 commit的内容

修改最后一次提交的commitgit commit --amend 修改最后一次提交的用户名git config user.name 'wangz' git config user.email 'wangz@alib.com' git commit --amend --author=wangz修改最后一次提交内容的相关文档$ git comm

2017-01-07 17:10:31 8008

原创 mac gem install nokogiri error

Gem::Ext::BuildError: ERROR: Failed to build gem native extension. /Users/angela/.rbenv/versions/1.9.3-p545/bin/ruby -r ./siteconf20170106-59264-robjdg.rb extconf.rb --use-system-librarieschecki

2017-01-06 17:10:53 974

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除