Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
@fortunezhang
Member
NO. 5739 / 2013-02-19

[email protected]
2 Topics / 11 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • Rails 后台控制文章是否展示怎么做 at August 14, 2013

    #3 楼 @zealinux ajax 可以吗?

  • 一小段代码重构 at August 12, 2013

    (ps:本人新手) 我唯一喜欢的就是#63 楼#做法,说下个人意见:这样做的好处是容易对功能进行扩展。举个例子来说:我现在新添加一种,如果我说 ruby python java 等编程语言,要求回复 hello world,那么改怎么写呢。设计原则上有一个叫做 ocp(open-close-priclple),63 楼恰好做到了。

  • RubyMine 假死 求解决方法 at July 04, 2013

    #15 楼 @zhufenggood 谢谢,我改了,明天试试,最近在忙一些东西,没来得及看。

  • RubyMine 假死 求解决方法 at June 06, 2013

    #6 楼 @ericguo 用的是 oracle 的,我们做开发必须用 oracle 的。

  • RubyMine 假死 求解决方法 at June 06, 2013

    #4 楼 @jasl 恩,谢谢,有空试试,觉得这可能是问题所在。

  • RubyMine 假死 求解决方法 at June 06, 2013

    #3 楼 @lb563 谢谢,下次遇到我试试。

  • RubyMine 假死 求解决方法 at June 06, 2013

    #2 楼 @zhangyuan 我觉得 8g 内存不少了。另外换个 ssd 硬盘不值得吧,再过半年我毕业后,公司给配 mac 的。

  • RubyMine 假死 求解决方法 at June 06, 2013

    #1 楼 @uudui 这是一个解决方案,谢谢。

  • rails 中多表关联的问题 at May 31, 2013

    #6 楼 @Rei 恩,好的,果然行。谢谢。谢谢。。。

  • rails 中多表关联的问题 at May 30, 2013

    #1 楼 @Rei class Comment < ActiveRecord::Base belongs_to :user belongs_to :news attr_accessible :commenter_id, :content, :is_show_public end 已经写好了。我是新手,我觉得问题处在我创建 comment 的时候哦,因为 @comment2 = @user.comments.create(:commenter_id=>1,:content=> params[:comment]['content'],:is_show_public=> false ) 传见出来的 comment 可以看到 new_id 是空。我本来在 show 的页面想这样写的 <%= comment.user %> 结果不正确。https://github.com/FortuneZhang/XinWen这是我的代码,希望你帮我看看。谢过。

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