Trix upload attachments with Rails Issue
- Dominant language
- JavaScript
- Stars
- 20k
- Forks
- 1.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 13
Description
Can't Upload attachment through trix editor and store it in active storage
```ruby
form do |f|
f.semantic_errors
f.inputs 'Article Details' do
f.input :title
f.input :ar_title
f.input :description
f.input :body, as: :trix_editor, input_html: {
value: f.object.body.body,
direct_upload: true,
}
f.input :date
f.input :view_order
f.input :thumbnail, as: :file
f.input :wallpaper, as: :file
end
f.actions
end
```
the attach action to such editor results in:
`ActionController::RoutingError (No route matches [POST] "/admin/blogs/4/undefined"):`
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the provided Rails form with a Trix editor configured for direct uploads, then trace the attachment upload request that produces /admin/blogs/4/undefined. Done means the attachment uploads through Active Storage without the undefined route error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100