Questions tagged [actiontext]

148 questions
0
votes
0 answers

Cannot Update Rich Text on Ruby on Rails

I have a model called blog that has a rich text field. There are no issues when I create a new blog post. But when I try to update an existing blog post, the rich text content does not get updated. But the title and image are updated and rails shows…
0
votes
1 answer

Images uploaded into ActionText text area not linking correctly to S3

I am using ActionText with image upload using the image_processing gem. However, when uploading images they do not go to S3 which is set in Active Storage. All other image uploads work fine and go into my S3 buckets as expected. It is just…
0
votes
1 answer

How to fix Action Text in Rails 6 where rich_text_area is empty on the page?

Guys I am trying to use Action Text with the rich_text_area tag. But on the page view the description field is Empty. Here the package.json: { ... "@rails/actiontext": "^6.0.3-1", ... }, } } Gemfile.lock: GEM …
Eldar
  • 45
  • 1
  • 5
0
votes
0 answers

How can one monkey patch action text's form helper to exclude the active storage dependency?

I'd like to monkey patch this method: https://github.com/rails/rails/blob/1ab0e6b6d8070f30b2a02254070c6dd07fa56ec4/actiontext/app/helpers/action_text/tag_helper.rb#L21 to exclude the two lines: options[:data][:direct_upload_url] =…
ayushn21
  • 305
  • 2
  • 7
0
votes
1 answer

Nginx 404 for /rails/active_storage/blobs/*filename(extension)

Below is my AWS NGINX config file. I am using rich text with active storage in my new rails app after upload when i am trying to open a file it gives me 404 error in production where in development it works really fine. files: …
0
votes
0 answers

Can't output values from Rails ActionText

UPDATE: This seems to be happening on an --api only build, which is what I use. It can be reproduced by creating a new rails project with the --api flag. @model.content.body.to_html seems to return the proper content. I am having a problem using…
navi
  • 193
  • 2
  • 12
0
votes
1 answer

Rails 6 ActionText::Engine::ApplicationController issue after installing Config gem

Rails version: 6.0.2.1 Ruby version: 2.7.0p0 I added gem 'config' (https://github.com/rubyconfig/config) to my Rails 6 project, ran bundle install, and rails g config:install. Everything appeared to install correctly. I can start the rails server…
stevenpslade
  • 310
  • 1
  • 18
0
votes
1 answer

Rails - How to use bulk import with action text?

I am building a rails 6 app and I am stuck on an issue. Let's say I have a table tasks which has 3 fields: id state description The description field is in fact a rich_text field thanks to ActionText. My problem is that I have a csv file composed…
Thomas
  • 183
  • 1
  • 14
0
votes
0 answers

Incompatibility Rails 6 ActionText w/ Tailwind webpack installation?

After installing Tailwind rich_text_area isn't showing correctly in forms. Exist a conflict between Rails6 ActionText and tailwind webpacker installation There's a trick to fix this error? Thanks in advance! Expected behavior form.rich_text_area…
coopeu
  • 83
  • 5
0
votes
2 answers

Rails 6 ActionText. Can a form use multiple rich text fields?

I'm using multiple rich text fields in my form on a rails 6 app, but only the first field is storing in the database the remaining fields are not showing on the db at all . module.rb has_rich_text :content has_rich_text :references has_rich_text…
0
votes
1 answer

Data being sent to the wrong table when using Action Text?

Using Ruby on Rails 6, after the user saves their story(using Action Text to type their story), they will be redirected to the show view where the story can be read. However, nothing is showing up and when checking the database, nothing seems to be…
Sam Lee
  • 65
  • 8
0
votes
4 answers

Is it possible to email users who are @mentioned in rails ActionText?

I followed the GoRails tutorial on using @mentions in ActionText. I want to automatically email any @mentioned user to alert them of the conversation. I would assume this to be trivial in Rails, but can't find any documentation on how to do…
hellion
  • 4,602
  • 6
  • 38
  • 77
-1
votes
0 answers

Limit Trix features by instance and not globally

We have a Rails 7 app and we are using ActionText to save medium rich to rich text. We know how to globally limit some features such as file uploads, add URL to the text, etc. But we are looking for an option to limit these features on a case by…
Stephane Paquet
  • 2,315
  • 27
  • 31
1 2 3
9
10