Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
@kikyous
VIP
NO. 2564 / 2012-06-16

[email protected]
西安
88 Topics / 875 Replies
20 Followers
0 Following
13 Favorites
GitHub Public Repos
  • ChatGPT-Nuxt-Web 10

  • bootstrap3-sass 4

    bootstrap-sass 3 continue

  • vscode-css-action 3

    A vscode extension help editing scss/less file with color replace and px convert.

  • mitmfile.py 2

    Define and load mitmproxy config easy

  • easy_form 2

    form builder without complex dsl

  • tc-dev-enhance 1

  • vue3-ui-test 0

  • Clash.Meta 0

    A rule-based tunnel in Go.

  • inertia-rails 0

    The Rails adapter for Inertia.js.

  • deno_deploy_cors_proxy 0

    Deno Deploy CORS Proxy

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 有没人试过 Docker 部署生产环境 Rails 环境 at December 27, 2016

    #8 楼 @assyer docker 里面应该不用管理 ruby 版本,直接 from 就好

  • 有没人试过 Docker 部署生产环境 Rails 环境 at December 27, 2016

    passenger 在 docker 里面没有优势

  • 有没人试过 Docker 部署生产环境 Rails 环境 at December 27, 2016

    #4 楼 @liangchaob 用 PUMA 或 UNICORN,不需要 passenger

  • 有没人试过 Docker 部署生产环境 Rails 环境 at December 27, 2016

    https://github.com/kikyous/docker-rails

    可以看一下我自己做的这个,一直在用

  • Dockerfile VOLUME 挂载后为空,有遇见过这个问题的么 at December 13, 2016

    VOLUME 指令和 run -v 是不一样的,官方文档有说明

  • 有 Docker 集群部署 Rails 的项目经验的大胸弟么? at December 11, 2016

    可以试试 daocloud

  • Rails 5.1 会提供对 Yarn 和 Webpack 的官方原生支持 at December 09, 2016

    越来越依赖 js 组件了

  • 关于图片的位置存放 at December 09, 2016

    静态文件放 app/assets/images,这是属于 app 代码的一部分

    用户上传的图片放 public/

  • 如何部署前后端分离的项目 at December 06, 2016

    是要分开部署的 如果是简单的项目不需要分开成两个项目可以使用 https://github.com/kikyous/sprockets-vue

  • 新人发个帖 at December 02, 2016

    萌新你好

  • [译] 重构 Rails MVC 组件的 7 个设计模式 at December 01, 2016

    有几个确实搞得复杂了,感觉在炫技😅

    有的还是很有用的

  • [译] 重构 Rails MVC 组件的 7 个设计模式 at November 30, 2016

    请问 include Virtus.model 是什么?

  • counter_cache 什么时候在数据库建立 count 字段 at November 30, 2016

    #3 楼 @Trump 可以看看https://github.com/magnusvk/counter_culture

  • counter_cache 什么时候在数据库建立 count 字段 at November 30, 2016

    需要在 migration 中声明

  • 手欠,升级到了 macOS Sierra, launchpad 图标全从文件夹跑出来了 at November 29, 2016

    从来不用 launchpad

  • 用户权限方面改怎么选择 at November 24, 2016

    pundit

  • Sidekiq:月赚 $8 万的基于开源项目的一个人的公司 at November 24, 2016

    佩服

  • 有必要在生成环境使用 rbenv 吗? at November 23, 2016

    使用 rbenv 会使 ruby 应用启动时间增加 0.0000001 秒(取决于机器性能)😁

  • Ruby On Rails + Vue 前后端分离初尝试 at November 22, 2016

    https://github.com/kikyous/sprockets-vue

    推荐楼主使用这个,直接在 rails 里使用.vue 单文件组件,如果不想把前后端分成两个项目可以试一下

    已经在公司的项目大规模使用了😁

  • 求告知以下代码中两个?是什么意思 at November 21, 2016

    a ? b : c

    if a
      b
    else
      c
    end
    
  • Rack handler for erlang at November 11, 2016

    也有 js 实现的

  • 用了 Angular 是不是最好不要再用 erb 了? at November 08, 2016

    推荐 vue

  • sprockets-vue 把 .vue 文件和 Rails Asset Pipeline 结合起来 at October 28, 2016

    #9 楼 @lwd369 我们公司项目都是直接引入 js 文件

  • sprockets-vue 把 .vue 文件和 Rails Asset Pipeline 结合起来 at October 28, 2016

    增加了测试

  • sprockets-vue 把 .vue 文件和 Rails Asset Pipeline 结合起来 at October 26, 2016

    😀

  • sprockets-vue 把 .vue 文件和 Rails Asset Pipeline 结合起来 at October 26, 2016

    #2 楼 @greatghoul

    试了一下,可以把组件分成多个文件,sprockets-vue 只需小小的改动:

    • index.vue 里面包含 script
    • index.tpl.vue 里面包含 template
    • index.style.vue 里面包含 style

    index.vue

    //= require_self
    //= require index.tpl
    //= require index.style
    <script lang="coffee">
    {
      data: ->
        members: []
        search: ''
        page: 0
    }
    </script>
    

    index.tpl.vue

    <template>
      <div>
        <div class='search icon-input' v-if='search_box'>
          <span class="search-icon glyphicon glyphicon-search"></span>
          <input class="form-control" type="text" v-model='search' placeholder='输入姓名/公司/产品搜索'>
          <span @user2='clear' class="clear-icon glyphicon glyphicon-remove"></span>
        </div>
        <card v-for="m in members" :m='m'></card>
        <infinite-loading :on-infinite="onInfinite"></infinite-loading>
      </div>
    </template>
    

    index.style.vue

    <style lang="scss">
      @import "bootstrap-sprockets";
      @import "bootstrap/variables";
      @import "bootstrap/mixins";
    
      // Reset and dependencies
      @import "bootstrap/normalize";
      @import "bootstrap/glyphicons";
    </style>
    
  • sprockets-vue 把 .vue 文件和 Rails Asset Pipeline 结合起来 at October 26, 2016

    #2 楼 @greatghoul 13 寸的 RMBP 太捉急了,上 27 寸显示器😁

  • sprockets-vue 把 .vue 文件和 Rails Asset Pipeline 结合起来 at October 26, 2016

    抱歉,最新版(支持 style)昨晚没有上传到 rubygems 上去,现在好了

  • Vue / React on Rails without JSON API at October 25, 2016

    https://github.com/kikyous/sprockets-vue

    刚做的,把.vue 文件和 Asset Pipeline 结合起来,还在比较初级的阶段,不过已经用在公司的生产环境了

    • index.vue
    <script lang="coffee">
    {
      data: ->
        search: ''
        members: []
      methods:
        clear: ->
          this.search = ''
    }
    </script>
    
    <template>
      <div class="container">
        <div class='search icon-input'>
          <span class="search-icon glyphicon glyphicon-search"></span>
          <input class="form-control" type="text" v-model='search'>
          <span @user1='clear' class="clear-icon glyphicon glyphicon-remove"></span>
        </div>
        <card v-for="m in members" :m='m'></card>
      </div>
    </template>
    
    • application.coffee
    #= require ./index
    
    new Vue(
      el: '#search',
      components: {
        'index': VCompents['index']
      }
    )
    

    目前正在做 style 的支持

  • 如何查看前端表单提交给控制器的内容? at September 29, 2016

    p params

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