Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trix upload attachments with Rails Issue #1186

Open
Deffo0 opened this issue Sep 23, 2024 · 0 comments
Open

Trix upload attachments with Rails Issue #1186

Deffo0 opened this issue Sep 23, 2024 · 0 comments

Comments

@Deffo0
Copy link

Deffo0 commented Sep 23, 2024

Can't Upload attachment through trix editor and store it in active storage

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"):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant