2014-08-01から1ヶ月間の記事一覧

ntp で時刻を合わせないと omniauth-twitter で 401食らう件

他のアプリでふつーに使ってたのになんか動かなくなった。 dev.twitter.com で callback ちゃんと入れてるしなあ、と思ってぐぐってたr: gem 'omniauth-twitter'で認証しようとしてOAuth::Unauthorized 401 Unauthorizedなんてエラーがでたら - Qiita : ht…

padorina で will_paginateを bootstrap と使う

will_paginate https://github.com/mislav/will_paginate/ にあるとおりインストールその他。 % padrino g plugin will_paginate bootstrap と合わせるには、https://gist.github.com/phildionne/5785087 を lib/will_paginate_bootstrap_renderer.rb あたり…

padrino で自分の config

padrino で自分の config YML app own config · padrino/padrino-framework Wiki GitHub : https://github.com/padrino/padrino-framework/wiki/YML-app-own-config あたりを見ながら。 % vi config/config.yaml :twitter: :consumer_key: "xxxx" :consumer_…

padrino tips

padrino tips rspec で test 準備 g project するときに -t rspec すると rspec がすぐ使える。 database へのアクセス test 環境で migrate しないと table がないと怒られます。 % rake ar:migrate RACK_ENV=test post it do の中でpost "/post" して last…

gollum インストールメモ

gollum インストールメモ インストール % sudo gem install すると iculib がないと怒られるので、 % yum list | grep icu して出てくる libicu-devel を入れてから再度入れなおす。 % yum install libicu-devel ... % sudo gem install gollum ... 起動 ini…

padrino でのウェブサービス作りを実況してみる

padrino でのウェブサービス作りを実況してみる 概要 twitter で書きなぐったのをまとめてブログとかwikiとかshortnote にあげる まずはプロジェクトとか プロジェクト名は、"timeline_editor"。安易ですね。 % pwd /home/source % padrino g project timeli…

warden_omniauth-jonrowe

hassox の warden_omniauth (0.1.0: https://github.com/hassox/warden_omniauth/)より jonrowe の(https://rubygems.org/gems/warden_omniauth-jonrowe)の方がいいっぽい。 hassox のだと gem に上がってる奴だと env['omniauth.auth'] を見ないのでコール…

Padrino 覚書き

前準備 インストール ふつーに % sudo gem install padrino で。 プロジェクト作成 padrino のgenerate project コマンドで。-d で ORM、-e でレンダリングエンジンを指定。-b をつけると bundle までやってくれる。 % padrino g project sample -d activere…