Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Edgar Wang
@edgar_wang_cn
会员
第 6280 位会员 / 2013-03-22

[email protected]
成都
10 篇帖子 / 253 条回帖
2 关注者
0 正在关注
17 收藏
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 这就是响应式布局 at 2013年11月28日

    - -。厉害。。。

  • Devdocs - 很棒的在线文档整合应用 at 2013年11月26日

    这个好棒(:з」∠)

  • CSS 解决 field error 的重复代码 at 2013年11月23日

    - -这个不错

  • 大家最近有看中什么新的编程语言么 at 2013年11月10日

    OCaml - -

  • ruby-china 在网吧的 IE 上看上去让我泪奔了 at 2013年11月10日

    - -。bootstrap 在旧版 IE 下的标准显示╮( ̄▽ ̄)╭

  • 出现了一个问题,请教 at 2013年11月09日

    #7 楼 @Levan https://github.com/minimagick/minimagick/issues/69 你看一下这个有没有帮助。

  • 出现了一个问题,请教 at 2013年11月09日

    #3 楼 @Levan 你试过了么?

  • 出现了一个问题,请教 at 2013年11月09日

    错误信息是说“没有identify这个文件或是目录”,我觉得应该是imagemagick没有安装或是路径设置错误,你试着在 shell 你运行下identify命令试试。

  • 问一下 route socpe at 2013年11月08日

    #19 楼 @tdseed 你写了类似 writings 里的 app/controllers/dashboard/base_controller.rb 的 controller 了么?

  • 问一下 route socpe at 2013年11月08日

    #17 楼 @tdseed 你是直接用的 writings 的代码?

  • 问一下 route socpe at 2013年11月08日

    - -。我觉得你应该把 route 里相关部分的代码也晒一下。

  • Enums for Active Record at 2013年11月05日

    太好了,终于有了,我现在就去改改试试 - -

  • 貌似 Rails 发布过程会有大量 node execjs 的进程出现 at 2013年11月04日

    每次部署我的 blog 都会这样,我都习惯了。用 mina 部署时,我明明在部署脚本里加上了 assets:precompile 命令,但是似乎都没有执行,所以每次第一次打开网页是都会卡半天 - -

  • rails3 的 controller 只能对应同名的 model 吗? at 2013年10月27日

    #2 楼 @hegwin 我头像上的字和我的名字没有关系的╮( ̄▽ ̄)╭

  • rails3 的 controller 只能对应同名的 model 吗? at 2013年10月27日

    这里你要手工指定 url,

    <%= form_for @user, :url => [自己指定] do |f| %>
      ...
    <% end %>
    
  • RVM 2.0 要用 Ruby 重写,募捐中 at 2013年10月19日

    opam 就是这么干的 - -

  • [上海] GitCafe 继续招优秀的 Ruby 工程师与实习生 at 2013年10月16日

    - -。好棒,可惜我在成都。。。

  • 有没有觉得右手小拇指特别累 at 2013年10月12日

    - -。我是左手小拇指。。。

  • GitBucket - 一个用 Scala 写的 GitHub 克隆 at 2013年10月06日

    这个不错,自用足够了。

  • 2 个 branch 的 migration 合并问题? at 2013年10月04日

    db/schema.rb中保存了数据库当前的状态。你看下它里面的注释就知道了。

  • @ 功能如何实现? at 2013年10月03日

    #5 楼 @mistbow 不是被墙了,是正在被 DDoS.....

  • @ 功能如何实现? at 2013年10月03日

    ruby-china 用的是这个https://github.com/ruby-china/ruby-china/blob/master/app/assets/javascripts/jquery.atwho.js 这里是几个具体的操作 https://github.com/ruby-china/ruby-china/blob/master/app/assets/javascripts/topics.coffee#L236 https://github.com/ruby-china/ruby-china/blob/master/app/assets/javascripts/app.coffee#L95 https://github.com/ruby-china/ruby-china/blob/master/app/assets/javascripts/app.coffee#L115

  • Ruby Hacking Guide 英文翻译完成 at 2013年10月01日

    #2 楼 @lululau 你还需要安装 jekyll

  • 看 Rails Guides 的新手问题 :posts_path 与 create 动作的对应 at 2013年09月30日

    #9 楼 @bigpig85 它跟form_for :post这种形式是类似的,不过form_for可以通过判断实例对象@post是否已存在于数据库中来确定url和method,所有就不需要特别指定url和method了。

  • JS 的前端框架,大家都用哪个啊? at 2013年09月29日

    #15 楼 @camel 这个真是神框架╮( ̄▽ ̄)╭

  • 看 Rails Guides 的新手问题 :posts_path 与 create 动作的对应 at 2013年09月29日

    #7 楼 @bigpig85 直接使用<%= form_for @post do |f| %>这种形式也可以。

  • 看 Rails Guides 的新手问题 :posts_path 与 create 动作的对应 at 2013年09月29日

    #5 楼 @bigpig85 基本上是对的。不过在你使用符号形式(即form_for :post)时,你要注意method和url的对应关系,比如POST /posts对应create方法,而PATCH /posts/:id对应于update方法,update和destroy之类的方法需要指定对象来操作。你可以自己改动几次看看具体效果。推荐你去看看这个 http://guides.rubyonrails.org/form_helpers.html

  • 看 Rails Guides 的新手问题 :posts_path 与 create 动作的对应 at 2013年09月29日

    是由form_for来确定的,form_for :post 会默认生成向/posts提交的表单,而POST /posts这个 route 对应的就是posts#create方法。form_for :post, url: posts_path则是使用url参数指定了提交表单的地址为posts_path,你也可以指定其它的地址。

  • 为什么要争论?! at 2013年09月21日

    #13 楼 @blacktulip - -。这张图好棒

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