You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to upload files for a model with has_many_attached option set the 500 error appears inside the browser inspector and the files are not saved. It is possible to save files when using has_one_attached option.
The update action could not be found for the :wrap_io_params
callback on Motor::ActiveStorageAttachmentsController, but it is listed in the controller's
:only option.
Raising for missing callback actions is a new default in Rails 7.1, if you'd
like to turn this off you can delete the option from the environment configurations
or set config.action_controller.raise_on_missing_callback_actions to false.
{
"errors": [
"The update action could not be found for the :wrap_io_params\ncallback on Motor::ActiveStorageAttachmentsController, but it is listed in the controller's\n:only option.\n\nRaising for missing callback actions is a new default in Rails 7.1, if you'd\nlike to turn this off you can delete the option from the environment configurations\nor set `config.action_controller.raise_on_missing_callback_actions` to `false`.\n"
]
}
System configuration
ruby 3.3.5 (2024-09-03 revision ef084cc8f4) [x86_64-linux]
Rails 7.2.1
motor-admin 0.4.31
Description
When trying to upload files for a model with
has_many_attached
option set the 500 error appears inside the browser inspector and the files are not saved. It is possible to save files when usinghas_one_attached option
.Error
POST http://localhost:3000/motor_admin/api/data/active_storage__attachments
500 Internal Server Error
Response
Steps to reproduce
rails new testing_motor
cd testing_motor
bin/setup
bundle install
rails motor:install && rails db:migrate
bin/rails active_storage:install && rails db:migrate
rails g model Post title:string body:text
app/models/post.rb
insert a linehas_many_attached :images
rails db:migrate
rails s
The text was updated successfully, but these errors were encountered: