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

广州
47 篇帖子 / 1109 条回帖
36 关注者
35 正在关注
233 收藏
人生有如花错
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 对 git 的分支还没理解到位 at 2015年03月06日

    谷歌 一个成功的 git 模型,适用于中小型团队或单干的。

  • [调查] 2015年 你会选 Angular.js 还是 Ember.js 呢? at 2015年03月06日

    团队 blog 用的 angular,因为太喜欢 baby.

  • Cookpad - 可能是世界上最大的 Rails 单一应用 at 2015年03月06日

    它毁了我的世界观

  • 成为一名初级 / 中级 Ruby on Rails 程序员应该具备怎样的技能树 at 2015年03月06日

    第二条路中的数据结构和算法,除非特殊的工作环境,不然跪倒一片。

  • devise 扩展问题 at 2015年03月05日

    覆盖这个方法,wiki 里面有。

  • 今天看到篇文章,我决定开始学 Elixir 了... at 2015年03月05日

    那不是好多语言都要学!!!

  • Scaffold 产生的 Controller 怎么跟模板不一样? at 2015年03月04日

    你应该是加入了什么 gem,maybe haml-rails 不确定,之前遇到过,没有深究。

  • rails 中有类似 js 中 set time out 和 set time interval 函数嘛? at 2015年03月03日

    估计你找的是 crontab,gem whenever.

  • 请教下大家都是如何做手机注册 authentication 的 有好用的 gem 么。devise 等流行 gem 都是以邮箱中心,在国内似乎不合适 at 2015年02月28日

    如果用短信,devise 就没什么用武之地了,忘记密码,重置密码那些都得改,虽说 devise 可以添加任意字段,比如 username, mobile 等等,但如果验证的全套东西都用不了,干嘛还用它呢。authlogic 不了解,但可以想象大同小异。修改工作量大。 So,自己写吧,慢慢完善。

    补充:我曾找过 devise 的 sms 插件,有几个,但没有好用的,大概四个月前的事,你可以再 google 一番。

  • sinatra 是否可以给手机 App 提供 RESTful api at 2015年02月28日

    估计你有少量页面 Rails+activerecord serializer+apipie(doc) 目前在用。 你可以 sinatra+grape+swagger(doc) 也不错 或者新武器 lina by 楼上 https://ruby-china.org/topics/24369

  • 一个基于 Rails 的 RESTful API 框架: Lina at 2015年02月28日

    #4 楼 @lyfi2003 用 api 之前总喜欢先试一下,心里有底。哈哈,类似谷歌的 restful 插件,做 api 请求。swagger 也有这个功能,只是 swagger-rails 在 rails 4.2 下出问题。

  • 在哪些社区找 DevOps 比较合理? at 2015年02月28日

    #20 楼 @devops 谢谢,看来我运维菜鸟都算不上啊,哈哈。

  • 多大的手机屏幕最好用? at 2015年02月27日

    大爱 4.0

  • 在哪些社区找 DevOps 比较合理? at 2015年02月27日

    #13 楼 @devops 有 ops 书籍推荐吗?准备入坑。

  • 一个基于 Rails 的 RESTful API 框架: Lina at 2015年02月27日

    集成 doc 非常赞,之前到处找 gem 来解析 doc,提个建议 http://linarb.org/apidoc 没有响应式,没有模拟操作。

  • 如何以 rails 作为数据源,开发单页面应用? at 2015年02月21日

    Rails 和 emberjs 关系更暧昧一点。资料相对来说多一点。 不管是 angularjs 还是 emberjs,或者其他 mv*框架,都建议前后端完全分离。rails(api)+yeoman+grunt+bower+angular-generate 组合会简单一点。 新年快乐。

  • GitHub 按季度的编程语言各项排名 at 2015年02月11日

    #1 楼 @mogodb 保守估计 js 横渡 2014-2018 ⬆

  • 有没有好的代码注释 typo 检查工具推荐么 at 2015年02月11日

    #4 楼 @blacktulip 在旁边添加注释是怎么做到的呢? 我看了下

    {"comment":{"body_html":"\u003cp\u003evim spell checking\u003c/p\u003e","body":"vim spell checking","article_url":"vim-spell-checking","id":"357","gravatar_url":"xx","article_title":"Vim Spell-Checking","user_id":"12","thread":"TatItc","user_name":""}}
    # TatItc 是文章里面的id
    

    很好奇他编辑文章的时候是怎么做的?

  • 误敲一个域名,得到意外发现,不得其解 at 2015年02月10日

    #4 楼 @quakewang :plus1:

  • [ 已解决 ] ActionMailer 的 smtp_setting,是否只要用一个邮箱的账号和密码,就能用? at 2015年02月10日

    如果是自己玩,gmail 就差不多了。 action mailer

    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      address:              'smtp.gmail.com',
      port:                 587,
      domain:               'example.com',
      user_name:            '<username>',
      password:             '<password>',
      authentication:       'plain',
      enable_starttls_auto: true
    }
    
  • 有没有生成二维码的 gem at 2015年02月09日

    前段处理吧,jq 插件

  • 初步深入 Rack (一) at 2015年02月08日

    :plus1:

  • 使用 AngularJS 从零构建大型应用 at 2015年02月06日

    控制器方法复用,我是这样做的

    'use strict';
    
    /**
     * @ngdoc function
     * @name ngblogApp.controller:BaseController
     * @description
     * # MainCtrl
     * Controller of the ngblogApp
     */
    angular.module('ngblogApp')
      .controller('BaseCtrl', ['$scope', '$window', function ($scope, $window) {
        $scope.search = function() {
          $window.location.href = '/#/search/posts?keyword=' + $scope.keyword;
        };
      }]);
    

    在其他控制器中

    $controller('BaseCtrl', {$scope: $scope});
    

    #7 楼 @nightire 这样该控制器就有了该功能。

  • 做个调查,大家对窗口管理工具有需求吗? at 2015年02月05日

    Ubuntu 下的 awesome

  • 截取 HTML 富文本的问题 at 2015年02月05日

    nokogiri 应该可以满足你的要求

  • 使用 AngularJS 从零构建大型应用 at 2015年02月04日

    请教,如何优化 ui 闪烁问题?如何优化首页的加载?

  • layout nil 无法生效? at 2015年02月04日

    我大胆猜测你没有写 render or redirect

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

    #5 楼 @hanluner controller 中的 this 拿到的是 scope, 请使用$($event.target) 不一定用 angular-ui, 自己封装到 directive 也行. demo

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