Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
李玮
@liwei78
高级会员
第 3469 位会员 / 2012-08-29

玮峰教育
长春
41 篇帖子 / 1385 条回帖
88 关注者
10 正在关注
367 收藏
写出正确的代码是需要理由的。
GitHub Public Repos
  • rails-practice 50

    《Rails 实践:使用 Rails 4 构建在线网店》

  • learn_backtrader 1

  • remote-working 1

    收集整理远程工作相关的资料

  • hackit.zip 0

    hackit.zip domain for sell

  • CVE-2023-38831-winrar-... 0

    CVE-2023-38831 winrar exploit generator

  • wtfis 0

    Passive hostname, domain and IP lookup tool for non-robots

  • Intranet_Penetration_Tips 0

    2018年初整理的一些内网渗透TIPS,后面更新的慢,所以整理出来希望跟小伙伴们一起更新维护~

  • Apt_t00ls 0

    高危漏洞利用工具

  • Terrapin-Scanner 0

    This repository contains a simple vulnerability scanner for the Terrapin attack present in the pa...

  • winrar_CVE-2023-38831_... 0

    lazy way to create CVE-2023-38831 winrar file for testing

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [解决 100%] 跟着《Ubuntu 12.04 上使用 Nginx Passenger 部署 Ruby on Rails》熟悉部署流程 at 2014年05月04日

    一般是把 nginx 放到 /etc/init.d/ ,比如

    ln -s /usr/local/nginx/bin/nginx /etc/init.d/nginx 然后设置自启动,具体方法看你服务器。

    小心防火墙是不是阻挡了除 port22 所有的访问,有时候默认只开放 22 端口的。

    建议用 puma,webrick 等 server 启动,在用 nginx 做一个 proxy_pass。

    lz 继续看,我当时搞了很久服务器,写了很多笔记,才摸索出来。小细节太多了,慢慢理解,lz 加油。

  • 求教哪款所见所得编辑器比较适合与 Rails 结合在一起用? at 2014年05月01日

    ckeditor

  • rspec 测试中编辑 factorygirl 生成的对象的疑惑 at 2014年05月01日

    这里定义了 user,FactoryGirl.create(:user) 按照它创建的,它当然是有数据库 ID 的。

    FactoryGirl.define do
      factory :admin, class: User do
        email '[email protected]'
        password '123456'
        password_confirmation '123456'
      end
    
      factory :user do
        email '[email protected]'
        password '123456'
        password_confirmation '123456'
        factory :user_with_orders do
          ignore do
            orders_count 5
          end
    
          after(:create) do |user, evaluator|
            create_list(:order, evaluator.posts_count, user: user)
          end
        end
      end
    end
    
    

    最简单的方法是 p 一下它,比如

    describe "with user's address" do
          let(:user_address) { FactoryGirl.create(:address) }
          p user_address
    
  • nginx 无法停止 at 2014年05月01日

    ps aux | grep nginx kill -9 xxxxx

  • 终于也忍不住了 at 2014年04月29日

    plu 机械风暴。。。。。。。。。

  • Rspec 是在 Rails 目前用的最多的测试框架吗? at 2014年04月29日

    核心逻辑要写,重构时要写。

  • 我是 RubyConf China 的组织者,介绍下第六届的进展还有一些个人想法 at 2014年04月28日

    先预定门票。。

  • haml slim 之流真的好吗? at 2014年04月25日

    把 haml 转回 erb,再继续。

  • 有哪些免费的 VPS 不错的? at 2014年04月24日

    aliyun 有免费用三天的

  • 有哪些免费的 VPS 不错的? at 2014年04月24日

    amazon ec2 可以免费政策不知道变没变,新开通账号并绑定信用卡,可以用一阵子。

  • 通用简单的事务工单系统? at 2014年04月21日

    trello.com

  • 天亮了 at 2014年04月13日

    去买一套现成的改一改呀。。

  • 写象棋 AI 很厉害的人,下象棋也很厉害吗? at 2014年04月11日

    代码写久了,象棋很厉害。。。话说局面这种事,我喜欢乱战,弃子争先。

  • [北京][2014年4月12日] Ruby Saturday 活动召集 [36kr] at 2014年04月10日

    想去。。。

  • 同一个 gem 如何切换版本号 at 2014年04月09日

    直接改 Gemfile.lock,它是用来保存版本号的

  • 上海书店竟然没有一本标题有 Ruby 的书 at 2014年03月26日

    也可能一抢而空涅。。。。。施主,你来晚了。。。

  • 开源 Tower 的编辑器 Simditor at 2014年03月25日

    :plus1:

  • 如果让你推荐 “离开就不能活” 的工具,你会说……?(主要 Mac 下,其他平台也可推荐) at 2014年03月25日

    Dash

  • 当你发现有人偷网时,你会... at 2014年03月19日

    拿砖头砸他家玻璃

  • 在这问大家一个在测试的时候用 rspec 的问题 at 2014年03月18日

    等等。。。。你是 rspec 的时候出的这个问题,你要检查下 spec

  • 在这问大家一个在测试的时候用 rspec 的问题 at 2014年03月18日

    或者排除法,从一行 routes 开始,一个个加回来,看哪个的问题

  • 在这问大家一个在测试的时候用 rspec 的问题 at 2014年03月18日

    #11 楼 @caleb328 我可不是大神,我没看出啥问题,你再跑一下代码,把关键的部分贴到 gist 上

  • 在这问大家一个在测试的时候用 rspec 的问题 at 2014年03月18日

    建议楼主先看看 resource 的方法,清理一下。

  • 在这问大家一个在测试的时候用 rspec 的问题 at 2014年03月18日

    #8 楼 @caleb328 贴到 gist,好吧。。。算了我自己贴。。。

    https://gist.github.com/liwei78/9618341

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