Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Steve
@qisine
高级会员
第 1809 位会员 / 2012-04-14

2 篇帖子 / 10 条回帖
0 关注者
0 正在关注
0 收藏
未设置 GitHub 信息。
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Access denied for user 'root'@'localhost' (using password: YES) at 2012年11月20日

    我搞不清楚,用mysql -u -p你现在能不能正常进入?确定你用的密码是正确的么?用rails db能否进入?

  • 请教一个路由问题 at 2012年11月19日

    try

    resources :items do match 'items/(category/:category_id/(xtype/:xtype/(tag/:tag_name)))' => 'items#index' end

    "不是说 QueryString 不 SEO 友好么?"

    已不确定,现代的搜索引擎比此更加智能。

  • Rails 开发中遇到的关于 after_create 的比较诡异的问题 at 2012年08月20日

    我估计情况是这样的,每次你 A.create,你就加一个 callback,因为 self.class.after_create 是累计的,不是取代你之前定义的 callbacks。除非此是你真正的目的,可能下面的方法更好点:

    class A < ActiveRecord::Base before_create :method_a after_create :method_b

    def method_a self.class_eval do def method_b; puts 'in method_b';end end end

    private method_b;end end

  • 求助, 有关 Bash Shell script at 2012年04月19日

    [690]user@host:~$ cat /tmp/long_running_task sleep 10; echo "task done!" [691]user@host:~$ !$ & /tmp/long_running_task & [1] 3108 [692]user@host:~$ wait 3108 task done! [1]+ Done /tmp/long_running_task [693]user@host:~$ echo $? 0

    可是估计 lululau 的方法更好

  • 来自欧洲,希望能认识些中国 rails 开发者 at 2012年04月16日

    #20 楼 @alvin2ye 把我的项目这里写下来了

  • 来自欧洲,希望能认识些中国 rails 开发者 at 2012年04月15日

    #14 楼 @alvin2ye 哪里都可以(温州算小城市呢?),不过不在北京此次无法遇见,但没问题,网上商量具体条件也行

  • 问个有关 arguments 应用的问题 at 2012年04月15日

    假如你的这个代码是在真是的程序里使用的,建议你用个效率更高的 algorithm, 比方 => http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes

  • 求助, 有关 Bash Shell script at 2012年04月15日

    或许 wait 可以满足你的要求

  • 来自欧洲,希望能认识些中国 rails 开发者 at 2012年04月14日

    #12 楼 @quakewang LOL,这是荷兰语

  • 来自欧洲,希望能认识些中国 rails 开发者 at 2012年04月14日

    #6 楼 @jean 对,应该是"支持",还需要多多学中文 #7 楼 @daqing 各个国家的人都想去中国创业,是吧?国内的经济发展太厉害。可是我的项目倒是不在中国做的,先只是针对瑞士市场的,然后才能考虑到外国增长

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