Giter Club home page Giter Club logo

ruby-taiwan's Introduction

This is source code of Ruby China Group

Install

  • You need to install Ruby 1.9.2, Rubygems and Rails 3.1 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
cp config/mailman.yml.default config/mailman.yml
bundle install
bundle update rails
rake assets:precompile
thin start -O -C config/thin.yml
./script/resque start
./script/mailman start
easy_install pygments # 或者 pip install pygments

Initialize Gollum Repository:

mkdir doc/wiki_repo
cd doc/wiki_repo
git init


## Test

* before running RSpec, start sunspot:solr : ```RAILS_ENV=test bundle exec rake sunspot:solr:run```

## Deploy

  $ cap deploy
  $ cap production remote_rake:invoke task=db:setup

## OAuth

* be sure to use: http://ruby-china.dev/
* callback url: http://ruby-china.dev/account/auth/github/callback

# Apply Google JSAPI

* http://code.google.com/intl/zh-CN/apis/loader/signup.html

## 麵包屑

### in controller

  drop_breadcrumb("A Level")
  drop_breadcrumb("B Level")

## Menu

  render_list :class => "menu" do |li|
    li << link_to("Home", "/")
  end

## Bootstrap CSS version

1.4.0

## Bootstrap Form

<https://github.com/rafaelfranca/simple_form-bootstrap/blob/master/config/initializers/simple_form.rb>

## Memcached

Dalli requires memcached 1.4.x +

## Mailman

如要啟動電郵回覆功能,請啟動 ./script/mailman

要設定 ./config/mailman.yml 到適當的 pop3 電郵,如果使用 gmail ,請確認已啟動 pop3接收郵件功能。

## Helpers

  render_topic_title(topic)

## Common Partial

* common/user\_nav : user\_navigation_bar

## Facebook Share

facekbook_enable: false by default

## Styling Guide

* Don't put plain html in helper
* NEVER LOGIC in View
* 重複用到的方法請隨手用 Helper 包
* 永遠使用括號 () 包覆複雜 Helper

## Wiki Repo

* DEV:

ln -s "absolute path" doc/wiki_repo

* PRODUCTION:

add in config/deploy.rb
run "ln -sf #{deploy_to}/shared/doc/wiki_repo #{deploy_to}/current/doc/wiki_repo"

## Contributors

* [Contributors](https://github.com/huacnlee/ruby-china/contributors)

## Thanks

* [Twitter Bootstrap](https://twitter.github.com/bootstrap)

Forked from [Homeland Project](https://github.com/huacnlee/homeland)

ruby-taiwan's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ruby-taiwan's Issues

自己的私人筆記存取遭拒

操作方式

  1. 開啟筆記本。
  2. 新增一條筆記,取消「公開」選項。
  3. 保存

或是

  1. 開啟筆記本
  2. 點選任何一條不是公開的筆記

預期結果

轉向到這條筆記的頁面

實際結果

出現「訪問被拒絕,你可能沒有權限或未登錄。」

wiki markdown 預覽

我的在github正常顯示的文章不能正常在Ruby taiwan wiki new的頁面上預覽

發新文章預設node

舉例:
我覺得在 octopress node 裡頭按發新文章時
發表的介面就應該預設在 octopress 而不是還是預設在工具控

這樣會有利於分類唷

列出自己的 notes

像是 /users/octocat/notes 這樣的 route 列出 octocat 這個 user 的 public notes

用一個帳戶 (Google) 登入,綁定另一個帳戶 (github) 時可能會出錯

就如 Issue #24 裡描述的情況,在某些不明的原因下用戶可能綁定到錯誤的帳戶上。

這裡的問題:

  • Authorization 的 [uid, provider] 不是 unique ,所以有一個 user 有兩組 github authorization 的情況
  • 在某情況下 omniauth 把 github 的綁定加到另一個用戶,而不是正確的用戶之上
  • 為甚麼 user.email 會是 nil?

這裡可能是應該加 unit test 確認的地方了

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.