Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@xufeng
高级会员
第 336 位会员 / 2011-11-30

上海
34 篇帖子 / 96 条回帖
1 关注者
0 正在关注
39 收藏
GitHub Public Repos
  • blog2 1

    ubuntu blog test

  • sample_app 1

    Ruby on Rails Tutorial Sample_app

  • first_app 1

    Ruby on Rails Tutorial first application

  • faker 1

    A library for generating fake data such as names, addresses, and phone numbers.

  • errbit 1

    The open source error catcher that's Hoptoad API compliant

  • sklik-api 1

    Sklik advertising PPC api for creating campaigns

  • make_flaggable 1

    User-centric flagging system for Rails 3 applications.

  • demo_app 1

    My Demo app

  • rails_templates 1

    我对 Rails 默认模板的定制,下载放进 项目的 lib 目录

  • deploy-rails 1

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • VPS 开机自动启动 rake sunspot:solr:start at 2014年01月15日

    setup with whenever

    config/schedule.rb

    every :reboot do command "cd /home/deployer/apps/brandinlabs/current/ && RAILS_ENV=production bundle exec sunspot-solr start --port=8983 --data-directory=/home/deployer/apps/brandinlabs/shared/solr/data --pid-dir=/home/deployer/apps/brandinlabs/shared/pids" end

  • VPS 开机自动启动 rake sunspot:solr:start at 2014年01月13日

    cd /var/www/xxx.com && RAILS_ENV=production rake sunspot:solr:start 把上面那段命令加入到/etc/rc.local,重启后不起作用,请问命令是否写得有问题啊

    感谢@beiersi

  • Ruby On Rails 3.2 升级到 4.0 at 2013年08月24日

    http://dev.mensfeld.pl/2013/06/upgrading-to-rails-4-0-from-rails-3-2-test-case-part-i-preparations-configuration-gems/

  • Linode 如何优化 Rails 内存啊? at 2013年08月12日

    #2 楼 @blacktulip Thanks very much. 已经免费升级了。

  • Linode 如何优化 Rails 内存啊? at 2013年08月11日

  • 如何取出一个字段 (不重复数据的 TOP10)? at 2012年06月17日

    #1 楼 @fresh_fish 数据量非常大,大约 1000 万以上条数据。 楼上那个帖子没有数据叠加的问题!请求 DEMO

  • Screencast: Rails Setup on Ubuntu at 2012年06月13日

    支持 你的视频

  • 如果一个 API 有 SOAP 和 REST 两个版本,你会选择哪个 at 2012年06月06日

    请问楼主是用的这个 GEM 吗? http://savonrb.com/

    分享一下经验!

  • 关于 submit 跳转 网页 at 2012年06月04日

    Routing Error

    需要修改你的 Routes

    Post

  • Rails scaffold 批量删除,更新 有没有 Gem 实现这个功能? at 2012年05月27日

    http://railscasts.com/episodes/165-edit-multiple

    http://lzqustc.iteye.com/blog/440694 http://clark1231.iteye.com/blog/1499588

  • 本周末 codeschool 免费 at 2012年05月18日

    非常感谢,

  • 新款 MacBook Pro 曝光:Retina 屏支持 USB 3.0 at 2012年05月15日

    #10 楼 @mimosa 有些 PC,无线驱动,要不显卡驱动不能用!无法变成黑苹果啊!

  • 新款 MacBook Pro 曝光:Retina 屏支持 USB 3.0 at 2012年05月15日

    #8 楼 @diudiutang 请问黑苹果的笔记本型号? @willmouse

  • 用户 Nokogiri 解析到乱码,我该写一个什么方法让以下内容不存入数据库? at 2012年05月01日

    # encoding: utf-8

  • Textarea 批量添加某个字段,一行一个,如何实现? at 2012年04月18日

    一个 Form 通过 textarea , 按照一行一个,批量提交数据库中的某个字段 @Rei

  • Textarea 批量添加某个字段,一行一个,如何实现? at 2012年04月18日

    #1 楼 @Rei 能简单的写一个 Form 吗?

  • 面包屑导航 请问大家有好用的 GEM 吗? at 2012年04月13日

    #8 楼 @huacnlee 之前跟你提过的,有 N 个项目想做,先慢慢研究,基本上都跟你讲过的!外贸 B2B,换有一个类似豆瓣的项目(换没有启动,已经写了一些代码了)。

  • 面包屑导航 请问大家有好用的 GEM 吗? at 2012年04月13日

    #5 楼 @huacnlee 我现在实用为主,没有太多时间研究技术细节。 我回去研究研究你的代码!

    Thanks

  • WiceGrid GEM 出错, 求帮助 at 2012年04月06日

    #7 楼 @scott 没有解决,急需其他高手帮忙

  • 12306 竟然是 rails 做的。。。 at 2012年03月26日

    #2 楼 @bl0ckme 邮箱验证

  • WiceGrid GEM 出错, 求帮助 at 2012年03月21日

    #4 楼 @dreamrise 等待你的好消息

  • Nokogiri 采集的文章内容包括图片,如何保存内容,替换换本地的图片文件路径啊? at 2012年03月19日

    高手请别不屑于这类问题,帮人一忙,胜造七级浮屠

  • Nokogiri 采集的文章内容包括图片,如何保存内容,替换换本地的图片文件路径啊? at 2012年03月19日

    图片远程路径 src 和文章内容,我都可以得到。如何用本地的图片路径替换到采集的图片的远程路径?

  • Nokogiri 采集的文章内容包括图片,如何保存内容,替换换本地的图片文件路径啊? at 2012年03月19日

    #3 楼 @alucardpj 是的 如何替换内容?

  • Nokogiri 采集的文章内容包括图片,如何保存内容,替换换本地的图片文件路径啊? at 2012年03月18日

    新人求帮助,谢谢了。

  • libreadline5-dev 无法安装啊? Ubuntu 11.10 at 2012年03月08日

    http://lassebunk.dk/2011/03/09/rails-seo-pack/

  • libreadline5-dev 无法安装啊? Ubuntu 11.10 at 2012年03月04日

    更改 root 密码 sudo passwd root sudo su root

    增加一个用户

    1、安装先决条件 sudo apt-get install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev

    libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev xclip ncurses-dev automake

    2、安装 rvm 2.1 安装 $ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) 2.2 shell 脚本配置 $ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.profile

    2.3 reload shell $ source .profile 2.4 验证是否安装正确 $ type rvm | head -1 2.5 查看 ubuntu 下各类 ruby 版本需要哪些条件 $ rvm requirements

    3、安装 ruby rvm install 1.9.2 source /etc/profile.d/rvm.sh

    编译 yaml-0.1.4 时出错,报缺 libtool。 sudo apt-get install libtool

    4、安装 rails rvm gemset create rails313 rvm use 1.9.2@rails313 --default gem install rails --no-ri --no-rdoc

    安装 OpenSSL 支持: apt-get install curl libcurl4-openssl-dev

    Gem 安装 Passenger:

    gem install passenger

    if you want to install the Nginx version instead:

    passenger-install-nginx-module

    sudo apt-get install libpcre3-dev

  • 批量上传图片功能,有简单的 Gem 生成吗?类似豆瓣这种 at 2012年03月01日

    #3 楼 @fresh_fish 有 rails 的 demo 代码吗?超级菜鸟一枚

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