Skip to content

Commit

Permalink
fix: ActiveStorageの仕組み(その1)のtypo (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: Shouichi Kamiya <[email protected]>
  • Loading branch information
RyochanUedasan and shouichi authored Feb 19, 2024
1 parent 18a30ec commit 2819e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _posts/2024-02-16-active-storage-internals-part-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ resolve("ActiveStorage::Attachment") do |attachment, options|
end
```

上記により`link_to`などに`ActiveStorage::ActiveStorage`が渡された場合、`rails_storage_redirect`を呼び出すようにしています。これがRailsの規約ではないURLが生成されていた理由です。では次に`rails_storage_redirect`の中身を見ましょう。
上記により`link_to`などに`ActiveStorage::Attachment`が渡された場合、`rails_storage_redirect`を呼び出すようにしています。これがRailsの規約ではないURLが生成されていた理由です。では次に`rails_storage_redirect`の中身を見ましょう。

```ruby
direct :rails_storage_redirect do |model, options|
Expand Down

0 comments on commit 2819e0c

Please sign in to comment.