Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
花错
@flowerwrong
Member
NO. 9442 / 2013-10-06

广州
47 Topics / 1109 Replies
36 Followers
35 Following
233 Favorites
人生有如花错
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • RubyMotion 3.0 将支持 Android at May 30, 2014

    请问有成熟的,开源的开发 android app 的应用吗?

  • Keeping it Simple: Migrating to Pundit from CanCan 中文版 at May 29, 2014

    很多人推荐 Pundit,就到楼主这里看看

  • 我的权限管理简单实现 (非 gem) at May 29, 2014

    #15 楼 @PlayMonkey 用的人挺多的,看来真的不错。

  • 我的权限管理简单实现 (非 gem) at May 28, 2014

    我昨天看了 rolify+cancan+devise,但是看起来头疼,所以还是决定自己弄个简单的,其实也没有多复杂。主要是我的 app 需求比较简单。5 个固定的用户组,只有一个开放 uri,也就是 login。目前这样我觉得是最简单的了。

  • 诸位看看我这样理解 rails 的用户登陆过程是不是正确的 at May 28, 2014

    可以去看下我最新的一篇 topic,有用户登录和退出,以及简单的基于用户组的权限控制

  • 我的权限管理简单实现 (非 gem) at May 28, 2014

    #3 楼 @billy 哈哈,所以叫做简单实现 目前的 app 只有 5 个固定的 group 组,开放的只有一个登陆,其他都是需要登陆的, 所以不同的 controller 里面写一个 before_action required_role(["group_name1", "group_name2]) 这样即可

  • 我的权限管理简单实现 (非 gem) at May 28, 2014

    #1 楼 @Peter required_role 是 help_method,暂时可以这样干 <% if required_role(["admin"])%> ...... <% end %> 如果需要细化,还需要实现 permission 表

  • ruby 中的类方法与对象方法有什么区别???求解 at May 27, 2014

    然后经过查资料,发现有三种方法创建 class method 一.@6 楼的 二. def self.method_name end 三. class some; end def some.method_name end

  • ruby 中的类方法与对象方法有什么区别???求解 at May 27, 2014

    thx all, 我还是喜欢显式调用,@user.password = User.hash_password(pass, salt), def self.hash(pass, salt) end in UserModel.

  • ruby 中的类方法与对象方法有什么区别???求解 at May 27, 2014

    #2 楼 @ruohanc 谢谢,你提醒了我,我正好买得有,只是以前没看懂。。。。。。

  • ruby 中的类方法与对象方法有什么区别???求解 at May 27, 2014

    #1 楼 @liwei78 谢谢,再请教下,图中的方法除了那个 class method 外,其他都没有显式调用; 字段是 login,hashed_password, salt; 添加 user 时作者这样写的 User.create(:login=>"yang", :password=>"111"), 实在看不出;哪里有调用方法 password=(pass)

  • 安装 mysql2 gem 时出问题, *** extconf.rb failed *** at May 25, 2014

    #26 楼 @Rei 同样的问题,谢谢一楼

  • 大家看老罗的锤子手机发布会了么 at May 21, 2014

    3000 的尴尬,比不上苹果,比不上小米。

    来自 RubyChina4Android

  • Sublime Text 2 安装了 ConvertToUTF8 也不支持中文 at May 21, 2014

    留作历练

    来自 RubyChina4Android

  • Ruby China 的 Android 客户端 [v1.0.5] at April 24, 2014

    #18 楼 @assyer 我导入 android studio,但是在 grade 的时候报错, 12:43:29 Failed to refresh Gradle project 'rubychina4android' The project is using an unsupported version of the Android Gradle plug-in (0.8.3). Version 0.9.0 introduced incompatible changes in the build language. Please read the migration guide to learn how to update your project. Open migration guide, fix plug-in version and re-import project 上网找资料,要求改: dependencies { classpath 'com.android.tools.build:gradle:0.9.+' } 但是我看到源码上就是这个样子的,求解。

  • Campo 3 发布 at March 08, 2014

    顶一个

  • Dojo 有人用么? at January 04, 2014

    那都用啥?extjs 需要商业授权,jquery 需要自己找各种控件,ember.js 只是实现了 mvc 功能,控件都是 jquery 的。求推荐

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