Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
シナトラを使用して、レールがキャリアウェーブに提供できる次のシナリオを作成するにはどうすればよいですか。
def store_dir "uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}" end
...モデルIDを使用して名前を付けたディレクトリの下にアバターを保存できる。
ウィキをチェックする必要がありました:
https://github.com/jnicklas/carrierwave/wiki/How-to%3A-Make-a-fast-lookup-able-storage-directory-structure