-1

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 case. For instance a basic comment will not allow users add attachment (images, files, etc.) but a product description will allow users to upload images or attach a link to a video.

Any suggestion on how to implement such requirement?

Stephane Paquet
  • 2,315
  • 27
  • 31
  • 1
    _We know how to globally limit some features such as file uploads, add URL to the text, etc._ probably this example will be helpful for answer – mechnicov Aug 09 '23 at 00:44

0 Answers0