を真似て素振りしていきます。
rails new showtell
最初は--dev
オプションをつけて、ローカルに入っているRailsがインストールされて失敗しました。
cd showtell
bin/rails g scaffold post title:string content:text
bin/rails action_text:install
bundle
bin/rails db:migrate
Post.rbを編集します。
class Post < ApplicationRecord has_rich_text :content end
app/views/posts/_form.html.erbを編集します。
<%= form_with(model: post) do |form| %> <% if post.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(post.errors.count, "error") %> prohibited this post from being saved:</h2> <ul> <% post.errors.each do |error| %> <li><%= error.full_message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= form.label :title %> <%= form.text_field :title %> </div> <div class="field"> <%= form.label :content %> <%= form.rich_text_area :content %> </div> <div class="actions"> <%= form.submit %> </div> <% end %>
ここまではスムーズです。 アプリケーションを起動して、画像をアップロードして、表示するところでエラーが起きました。 Railsが落ちます。
Started GET "/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7a3e3db520cec6dfd4fdf6de3acef0da759f402d/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJY0c1bkJqb0dSVlE2RkhKbGMybDZaVjkwYjE5c2FXMXBkRnNIYVFJQUJHa0NBQU09IiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--3f9b29398b5ebb2d4c601ff56236e1ef4c50d416/%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88%202021-09-16%209.44.35.png" for ::1 at 2021-09-18 10:01:35 +0900 Processing by ActiveStorage::Representations::RedirectController#show as PNG Parameters: {"signed_blob_id"=>"eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--7a3e3db520cec6dfd4fdf6de3acef0da759f402d", "variation_key"=>"[FILTERED]", "filename"=>"スクリーンショット 2021-09-16 9.44.35"} ActiveStorage::Blob Load (0.1ms) SELECT "active_storage_blobs".* FROM "active_storage_blobs" WHERE "active_storage_blobs"."id" = ? LIMIT ? [["id", 1], ["LIMIT", 1]] ActiveStorage::VariantRecord Load (0.4ms) SELECT "active_storage_variant_records".* FROM "active_storage_variant_records" WHERE "active_storage_variant_records"."blob_id" = ? AND "active_storage_variant_records"."variation_digest" = ? LIMIT ? [["blob_id", 1], ["variation_digest", "wjqVtOuFppDd1oEBBMUc2TyD8vk="], ["LIMIT", 1]] Disk Storage (11.7ms) Downloaded file from key: g1onqvurdu6whqk8k0tdfc6flrcp Completed 500 Internal Server Error in 97ms (ActiveRecord: 0.9ms | Allocations: 25357) #<Thread:0x00007fe41150c948 /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:340 run> terminated with exception (report_on_exception is true): /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library 'vips.42': dlopen(vips.42, 5): image not found. (LoadError) Could not open library 'libvips.42.dylib': dlopen(libvips.42.dylib, 5): image not found from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi/library.rb:99:in `map' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi/library.rb:99:in `ffi_lib' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ruby-vips-2.1.3/lib/vips.rb:573:in `<module:Vips>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ruby-vips-2.1.3/lib/vips.rb:570:in `<main>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.0.beta3/lib/zeitwerk/kernel.rb:35:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/image_processing-1.12.1/lib/image_processing/vips.rb:1:in `<main>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.0.beta3/lib/zeitwerk/kernel.rb:35:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/image_processing_transformer.rb:26:in `const_get' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/image_processing_transformer.rb:26:in `processor' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/image_processing_transformer.rb:17:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/transformer.rb:22:in `transform' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variation.rb:56:in `block in transform' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications.rb:209:in `instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variation.rb:55:in `transform' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:35:in `block in transform_blob' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/downloader.rb:15:in `block in open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/downloader.rb:24:in `open_tempfile' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/downloader.rb:12:in `open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/service.rb:90:in `open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/blob.rb:275:in `open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:34:in `transform_blob' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:19:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:14:in `processed' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/controllers/active_storage/representations/base_controller.rb:14:in `set_representation' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:415:in `block in make_lambda' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:200:in `block in halting' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:500:in `block in invoke_before' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:500:in `each' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:500:in `invoke_before' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:116:in `block in run_callbacks' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actiontext-7.0.0.alpha2/lib/action_text/rendering.rb:20:in `with_renderer' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actiontext-7.0.0.alpha2/lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:127:in `instance_exec' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:127:in `block in run_callbacks' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:138:in `run_callbacks' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/abstract_controller/callbacks.rb:220:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/rescue.rb:22:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/instrumentation.rb:65:in `block in process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications.rb:207:in `block in instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications/instrumenter.rb:24:in `instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications.rb:207:in `instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/instrumentation.rb:64:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activerecord-7.0.0.alpha2/lib/active_record/railties/controller_runtime.rb:27:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/abstract_controller/base.rb:151:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionview-7.0.0.alpha2/lib/action_view/rendering.rb:39:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:266:in `block (2 levels) in process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/concurrency/share_lock.rb:162:in `sharing' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/dependencies/interlock.rb:37:in `running' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:258:in `block in process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:343:in `block in new_controller_thread' Exiting /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi/library.rb:145:in `block in ffi_lib': Could not open library 'vips.42': dlopen(vips.42, 5): image not found. (LoadError) Could not open library 'libvips.42.dylib': dlopen(libvips.42.dylib, 5): image not found from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi/library.rb:99:in `map' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ffi-1.15.4/lib/ffi/library.rb:99:in `ffi_lib' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ruby-vips-2.1.3/lib/vips.rb:573:in `<module:Vips>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/ruby-vips-2.1.3/lib/vips.rb:570:in `<main>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.0.beta3/lib/zeitwerk/kernel.rb:35:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/image_processing-1.12.1/lib/image_processing/vips.rb:1:in `<main>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/bootsnap-1.8.1/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/zeitwerk-2.5.0.beta3/lib/zeitwerk/kernel.rb:35:in `require' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/image_processing_transformer.rb:26:in `const_get' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/image_processing_transformer.rb:26:in `processor' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/image_processing_transformer.rb:17:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/transformers/transformer.rb:22:in `transform' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variation.rb:56:in `block in transform' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications.rb:209:in `instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variation.rb:55:in `transform' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:35:in `block in transform_blob' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/downloader.rb:15:in `block in open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/downloader.rb:24:in `open_tempfile' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/downloader.rb:12:in `open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/lib/active_storage/service.rb:90:in `open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/blob.rb:275:in `open' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:34:in `transform_blob' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:19:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/models/active_storage/variant_with_record.rb:14:in `processed' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activestorage-7.0.0.alpha2/app/controllers/active_storage/representations/base_controller.rb:14:in `set_representation' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:415:in `block in make_lambda' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:199:in `block (2 levels) in halting' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/abstract_controller/callbacks.rb:34:in `block (2 levels) in <module:Callbacks>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:200:in `block in halting' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:500:in `block in invoke_before' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:500:in `each' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:500:in `invoke_before' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:116:in `block in run_callbacks' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actiontext-7.0.0.alpha2/lib/action_text/rendering.rb:20:in `with_renderer' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actiontext-7.0.0.alpha2/lib/action_text/engine.rb:69:in `block (4 levels) in <class:Engine>' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:127:in `instance_exec' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:127:in `block in run_callbacks' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/callbacks.rb:138:in `run_callbacks' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/abstract_controller/callbacks.rb:220:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/rescue.rb:22:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/instrumentation.rb:65:in `block in process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications.rb:207:in `block in instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications/instrumenter.rb:24:in `instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/notifications.rb:207:in `instrument' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/instrumentation.rb:64:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/params_wrapper.rb:250:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activerecord-7.0.0.alpha2/lib/active_record/railties/controller_runtime.rb:27:in `process_action' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/abstract_controller/base.rb:151:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionview-7.0.0.alpha2/lib/action_view/rendering.rb:39:in `process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:266:in `block (2 levels) in process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/concurrency/share_lock.rb:162:in `sharing' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/activesupport-7.0.0.alpha2/lib/active_support/dependencies/interlock.rb:37:in `running' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:258:in `block in process' from /Users/shigerunakajima/.rbenv/versions/3.0.2/lib/ruby/gems/3.0.0/gems/actionpack-7.0.0.alpha2/lib/action_controller/metal/live.rb:343:in `block in new_controller_thread'
Could not open library 'libvips.42.dylib'
とあるので環境設定が上手く行ってなさそうです。