Rails
paperclip の保存ディレクトリ名あるいはファイル名をid連番ではなく、MD5とかSHA1のハッシュ値にするメモ - 超自己満足プログラミングGoogle で検索して、やったー!とコピーペーストして動かしてみると、あれれ … エラーが。 /appname/config/initializers…
On our way to write code for bioddicted, we encounter a case that we need to force a user to logout. We are using devise & OmniAuth for authentication.bioddicted のコードを Rails を使って書いています。認証には devise と OmniAuth を組み合わ…
ちょっと詰まりました。これについて書かれたエントリーがあまりなかったのでメモを残しておきます。Suppose there are two models "User" and "Book" in the following relation. ユーザー(User)とその蔵書(Book)ふたつのモデルがあって、以下のような…