Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@fortunezhang
会员
第 5739 位会员 / 2013-02-19

[email protected]
2 篇帖子 / 11 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Rails 后台控制文章是否展示怎么做 at 2013年08月14日

    #3 楼 @zealinux ajax 可以吗?

  • 一小段代码重构 at 2013年08月12日

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

  • RubyMine 假死 求解决方法 at 2013年07月04日

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

  • RubyMine 假死 求解决方法 at 2013年06月06日

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

  • RubyMine 假死 求解决方法 at 2013年06月06日

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

  • RubyMine 假死 求解决方法 at 2013年06月06日

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

  • RubyMine 假死 求解决方法 at 2013年06月06日

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

  • RubyMine 假死 求解决方法 at 2013年06月06日

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

  • rails 中多表关联的问题 at 2013年05月31日

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

  • rails 中多表关联的问题 at 2013年05月30日

    #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