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)
app/app.rbのenable :sessionsをコメントアウトし、次の記述を追加します。
kaminari は現状 actionpack >= 3.0.0 への依存があるので Padrino 0.11.0 と一緒に使うのが難しい
File.new(Padrino.root("log", "#{Padrino.env}.log"), "a+")log_pathなんて見てないじゃないか。。。
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…