Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
张楠C12
@nanzhang
VIP
NO. 1119 / 2012-02-21

12 Topics / 44 Replies
1 Followers
1 Following
185 Favorites
GitHub Public Repos
  • advanced-go-programmin... 1

    :books: 《Go语言高级编程》开源图书,涵盖CGO、Go汇编语言、RPC实现、Protobuf插件实现、Web框架实现、分布式系统等高阶主题(完稿)

  • simple-admin-core 1

    Simple Admin是一个开箱即用的分布式微服务后端管理系统,基于go-zero开发,提供丰富的功能如服务发现,权限管理等。 该框架可以帮助您快速开发具有RPC服务的后台管理系统。Simpl...

  • FiraCode 1

    Free monospaced font with programming ligatures

  • Introduction-to-Golang 1

    【未来服务器端编程语言】最全空降golang资料补给包(满血战斗),包含文章,书籍,作者论文,理论分析,开源框架,云原生,大佬视频,大厂实战分享ppt

  • easeprobe 1

    A simple, standalone, and lightWeight tool that can do health/status checking, written in Go.

  • awesome-go 1

    A curated list of awesome Go frameworks, libraries and software

  • haoel.github.io 1

  • imapflow 1

    IMAP Client library for EmailEngine Email API (https://emailengine.app)

  • merkletreejs 1

    🌱 Construct Merkle Trees and verify proofs in JavaScript.

  • gitlab_ci-cd 1

    学习资源收集

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • RubyConfChina 2012 预热帖 at August 28, 2012

    期待,想去!

  • https uploadify 上传文件时报 IO Error at August 23, 2012

    刚遇到此类问题,无解,偶尔性的。LZ 解决了么?@kehao

  • Devise 的 reset_password 如何绕过 password,password_confirmation 之外的其它属性验证? at August 22, 2012

    @jimrokliu
    user.update_attrubutes 这个是 model 中的属性要验证 user.update_attrubute 这个不需要验证 user.save(:validate => false) 这个不好,password 和 password_confirmation 也都绕过了。 如果自己再去校验太麻烦

  • Devise 的 reset_password 如何绕过 password,password_confirmation 之外的其它属性验证? at August 22, 2012

    @chucai @stc采用Devise的默认方法很好,不去修改了,自己改的不伦不类也就失去了安全的初衷,在 model 中添加一些过滤条件去过滤些特殊的用户。THX! :D

  • Devise 的 reset_password 如何绕过 password,password_confirmation 之外的其它属性验证? at August 22, 2012

    @chucai ORZ...实在没办法 就重写上面的update方法

  • Devise 的 reset_password 如何绕过 password,password_confirmation 之外的其它属性验证? at August 22, 2012

    @stc

    # PUT /resource/password
      def update
        self.resource = resource_class.reset_password_by_token(params[resource_name])
    
        if resource.errors.empty?
          flash_message = resource.active_for_authentication? ? :updated : :updated_not_active
          set_flash_message(:notice, flash_message) if is_navigational_format?
          sign_in(resource_name, resource)
          respond_with resource, :location => after_sign_in_path_for(resource)
        else
          respond_with resource
        end
      end
    

    这个是默认的方法,那 user.update_with_password 我只有去重写这个方法?

  • [北京] Ruby China 第一次技术交流活动公布 (3 月 18 日) at March 13, 2012

    占个坑,报名 学习学习~~

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