Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
花错
@flowerwrong
会员
第 9442 位会员 / 2013-10-06

广州
47 篇帖子 / 1109 条回帖
36 关注者
35 正在关注
233 收藏
人生有如花错
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 丧心病狂,做几个题就可以预测程序猿的工资? at 2015年02月04日

    #1 楼 @crazyjin 同跪

  • 请教 AngularJS 和 jQuery 混用的问题 at 2015年02月04日

    初学者,😄

    1. return 不知道 controller 中为什么会有
    2. this $($event.target)
    3. $('#calendar').fullCalendar({}) 这个应该交给 directive
  • 用 Kindle 看技术书籍靠谱么? at 2015年02月03日

    #14 楼 @mogodb rails guide for kindle with mobi

  • 用 Kindle 看技术书籍靠谱么? at 2015年02月03日

    pdf 不靠谱,mobi 等手机格式还 ok, 比如看 rails 文档。

  • 怎么判断 params 传递进来的值为空格 at 2015年02月02日

    #3 楼 @blacktulip ''.emtpy? # true ' '.empty? # false这样到是麻烦了。还是正则表达式吧

    params[:x].empty? == false && params[:x].blank? == true
    
  • 怎么判断 params 传递进来的值为空格 at 2015年02月02日

    ' '.blank? # true

  • 哪里有常用 gem 的比较详细的介绍 at 2015年02月02日

    README.md --> 看测试(有的gem包含demo) --> google --> 源代码

  • 求推荐一个富文本编辑器 at 2015年01月31日

    #1 楼 @jxs471494539 ...

  • 用 Rails 做外包,后台用 active_admin 还是 rails_admin 好? at 2015年01月27日

    买一套主题或者你说的用 rails-admin 之类的,一般 cms drupal 二次开发完胜 joomla 个和 wordpress.

  • 微信支付 Gem at 2015年01月27日

    #5 楼 @jasl 这个 gem 可以在产品环境用吗?

  • rails application.js 如何在不同的页面加载不同的 js lib at 2015年01月27日

    https://github.com/refinery/refinerycms/blob/master/core/app/views/refinery/_javascripts.html.erb#L2

  • 请问大家使用带有表情的富文本编辑框使用的都是哪些插件? at 2015年01月27日

    ueditor

  • 还有王法吗?我们约好的呢? at 2015年01月26日

    想来是gsub('-', '_') 于是搜索 https://github.com/discourse/discourse/search?utf8=%E2%9C%93&q=gsub%28%27-%27%2C+%27_%27%29&type=Code https://github.com/discourse/discourse/blob/e668d770ac0fdb3486386d51b45f20d97e5677b3/lib/slug.rb#L8 应该是这里。没细看

  • 还有王法吗?我们约好的呢? at 2015年01月26日

    :'zh-CN'

  • [已解决] 图片上传遭拒,是 capistrano3 + carrierwave 问题,还是权限问题? at 2015年01月26日

    fetch(:linked_dirs)就是取得那个数组 chmod 777 -R /home/a_project/shared/public/uploads 改变文件夹权限,读写执行

    #20 楼 @Rei 感觉这个比较靠谱。你还是 useradd 吧,不用 root

  • [已解决] 图片上传遭拒,是 capistrano3 + carrierwave 问题,还是权限问题? at 2015年01月26日

    我认为第一是 capistrano 的 shared/public/uploads 没有创建对

    project/current/public$ ls -al | grep uploads
    # current下面的uploads是链接到shared下面的
    lrwxrwxrwx 52 Jan 16 15:49 uploads -> /home/project/shared/public/uploads
    
    # deploy.rb
    set :linked_dirs, fetch(:linked_dirs) + %w{public/system public/uploads} # 注意 fetch(:linked_dirs) + []
    
    # 检查并创建
    cap production deploy:check:linked_dirs
    cap production deploy:symlink:shared
    

    如果还不行,那么你看我的 uploads 文机夹的权限 chmod 777 -R project/shared/public/uploads

  • 容错和速错 at 2015年01月25日

  • 引入 Bootstrap,如何不让其对系统默认样式不产生影响呢? at 2015年01月25日

    可以看一下这个 refinerycms, layout 分得比较细 https://github.com/refinery/refinerycms/blob/master/core/app/views/layouts/application.html.erb

  • 说说 Rails 的套娃缓存机制 at 2015年01月24日

    :plus1: 原来touch: true是这么用的。

  • p "some thing"输出的内容在服务器上不写入日志吗? at 2015年01月24日
    # production
    config.log_level = :info
    
    # any file with .rb
    Rails.logger.info "hello world"
    

    log in production.log

  • [已解决] 图片上传遭拒,是 capistrano3 + carrierwave 问题,还是权限问题? at 2015年01月24日

    我是用capistrano一键部署的,那每次部署之后current/public/应该是会变的,这个怎么处理?我是不是应该指明在哪里的public文件夹?

    http://flowerwrong.iteye.com/blog/2150191

  • 讨论请教一个简单的问题,判断 Rails 里面空值或者 nil 的处理方法。 at 2015年01月23日

    count整张表的状况 , 比如说? 不都是查出来再判断的吗?

  • PostgreSQL 接近 6 亿条记录,加了索引,查询效率优化问题? at 2015年01月23日

    除了必要的优化外,hadoop 类工具离线分析吧。 #15 楼 @cloudqq 👍

  • 使用 Slack & exception_notification 监控 Rails 异常 at 2015年01月22日

    👍

  • [已解决] 服务器出错怎样 debug? 思路是怎样的? at 2015年01月22日

    这是项目 500 错误,看log/production.log 建议把这个页面修改 下一步看 nginx 的 error.log 和 access.log 如果有单个域名自定义 log, 优先查看自定义的 log 文件

  • 建议大家尽早应用验证码 at 2015年01月22日

    mp.weixin.qq.com 的做法挺好的,登陆失败超过几次后就出现验证码。

  • vim 如果弄出竖线的效果? at 2015年01月21日

    indentLine

  • 大家写测试偷懒不? at 2015年01月21日

    测试为何物 😄

  • 高手对决 -- 博客服务器被黑的故事 at 2015年01月21日

    :plus1:

  • 上一页
  • 1
  • 2
  • …
  • 18
  • 19
  • 20
  • 21
  • 22
  • …
  • 35
  • 36
  • 下一页
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English