This is the source code of Ruby China Group
- You need Ruby 1.9.2+, Rubygems and Rails 3.2+ first.
- Install and start Redis, MongoDB, memcached, Python, Pygments
cp config/config.yml.default config/config.yml
cp config/mongoid.yml.default config/mongoid.yml
cp config/redis.yml.default config/redis.yml
bundle install
rake assets:precompile
rake db:seed
thin start -O -C config/thin.yml
./script/resque start
bundle exec rake sunspot:solr:start
easy_install pygments # 或者 pip install pygments
rake db:migrate
or you can just this issue
rake test:init
to prepare all the config files and start essential services.
$ cap deploy
$ cap production remote_rake:invoke task=db:setup
- be sure to use: http://ruby-china.dev/
- callback url: http://ruby-china.dev/account/auth/github/callback
drop_breadcrumb("A Level")
drop_breadcrumb("B Level")
render_list :class => "menu" do |li|
li << link_to("Home", "/")
end
1.4.0
Dalli requires memcached 1.4.x +
render_topic_title(topic)
- common/user_nav : user_navigation_bar
facekbook_enable: false by default
- Don't put plain html in helper
- NEVER LOGIC in View
- 重複用到的方法請隨手用 Helper 包
- 永遠使用括號 () 包覆複雜 Helper
Forked from Homeland Project
Copyright (c) 2011-2012 Ruby China
Released under the MIT license: