2016-11-26から1日間の記事一覧

新しいタブ

app error: "`protect_from_csrf` is activated, but `sessions` are not. To enable csrf\nprotection, use:\n\n enable :sessions\n\nor deactivate protect_from_csrf:\n\n disable :protect_from_csrf\n" (RuntimeError)

河西 高明 Tech Blog: PadrinoでRack::Session::Poolを使う方法

app/app.rbのenable :sessionsをコメントアウトし、次の記述を追加します。

Upgraded to Padrino 0.11.0 - Qiita

kaminari は現状 actionpack >= 3.0.0 への依存があるので Padrino 0.11.0 と一緒に使うのが難しい

logger.rb in padrino-framework | source code search engine

File.new(Padrino.root("log", "#{Padrino.env}.log"), "a+")log_pathなんて見てないじゃないか。。。

2016年11月26日のツイート

window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.paren…