Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
yqwoe
@yqwoe
Member
NO. 21537 / 2015-10-13

郑州
9 Topics / 71 Replies
7 Followers
28 Following
201 Favorites
GitHub Public Repos
  • datart-vite 21

    如果觉得不错,记着给个免费的Star,谢谢

  • yqwoe.github.io 1

  • 1 0

    手机往下滑 ❤️ 定期更新 ❤️ 免费/白嫖/公益/节点/机场/订阅/vpn/翻墙

  • spree 0

    An open source eCommerce platform giving you full control and customizability. Modular and API-fi...

  • rust-exmples 0

  • go-exmples 0

  • dinky 0

    Dinky is an out of the box one-stop real-time computing platform dedicated to the construction an...

  • ailearning 0

    AiLearning:数据分析+机器学习实战+线性代数+PyTorch+NLTK+TF2

  • dawn 0

    曙光项目

  • devise-token-auth-reac... 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 五一 [郑州] Ruby 活动,郑州的 Rubyist,求约 at July 15, 2016

    🍻

  • [远程] 招聘 Rails 攻城狮 - 自由枪骑兵 at July 06, 2016

    #7 楼 @teacafe2000 here

  • 生产环境下 module 的问题 at January 11, 2016

    #10 楼 @billy 能单独请教一下你吗?我的邮箱是 [email protected],多谢了。

  • 生产环境下 module 的问题 at January 11, 2016

    #8 楼 @billy 我的逻辑是我每次请求 controller 就要判断当前用户是否有某个数据库访问权限,所以需要在 controller 和 module 之间传递当前登录的 User 对象。然后根据 User 中得某个字段来判断是否有权限。我的判断是写在钩子方法中得。

  • 生产环境下 module 的问题 at January 10, 2016

    #5 楼 @rei 不好意思,刚才太匆忙了,没完整的描述出来。我定义了一个 module BaseModel Current_user Inculded |base| P @@current_user End End

    我在 applicationctroller 中定义了一个 before_action {BaseModel·current_user=current_user}

    Class model Include BaseModel End

    访问得不到 current_user

  • 生产环境下 module 的问题 at January 10, 2016

    #5 楼 @rei BaseModule class 都是放在 models 文件夹下的

  • 生产环境下 module 的问题 at January 10, 2016

    #3 楼 @rei class model include BaseModel end 就这样引入的

  • 生产环境下 module 的问题 at January 10, 2016

    #1 楼 @billy 把代码写入 produciton.rb 中?

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