Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1 KB

File metadata and controls

47 lines (31 loc) · 1 KB

Room for Tweet.

cd (作業ディレクトリ)

git clone git@github.com:shu0115/roomz01.git roomz
cd roomz

dev.twitter.com/apps/new

Name: [ (アプリケーションの名前) ]
Description: [ (アプリケーションの説明) ]
WebSite: [ http://0.0.0.0:3000/ ]
Callback URL: [ http://0.0.0.0:3000/ ] ※登録しないと動かない

□ Yes, I agree <= チェック

CAPTCHA入力後「Create your Twitter application」を押下
vi config/initializers/local_setting.rb
-----
# Twitter OAuth Local Setting
ENV['TWITTER_KEY'] = "YOUR_CONSUMER_KEY"
ENV['TWITTER_SECRET'] = "YOUR_CONSUMER_SECRET"
-----
[ i ]:編集モードへ移行
[ ESC ]:コマンドモードへ移行
[ :wq ]:保存して終了
bundle install --without production
rake db:migrate
rails s

Copyright © 2012 Shun Matsumoto.