I'm kinda new in the comfortable mexican sofa world and I encountered really weird bug on rails 6.0.1. It's connected to activestorage.
I installed activestorage and I tried to upload file via CMS. It shows empty progress bar, but in the server logs there's a loop on creating and deleting activestorage. There's no progress, just endless loop of create->delete. I'm kinda lost :(.
Thank you for creating this amazing gem and thank you for your time :)
<>
to edit the HTML in a wysiwyg, and the data saves just fine. But then if we make any edit, even to a different field, the HTML source gets all sort of <p>
tags and it's no longer html. Any ideas? Should I open an issue for this?
I am a beginner developer.
I have been worried since yesterday. I have two pages that are content pages managed by this CMS (mexican-sofa).
https://example.com/interviews
https://example.com/seminars
I put these on the TOP page (https://example.com/
).
Is there a way to do that? I wrote the following code in application_controller using before_action
```
before_action :redirect_cms_pages
private
def redirect_cms_pages
redirect_cms_pages_list = ["/interviews", "/seminars"]
current_fullpath = request.fullpath
redirect_to '/' if redirect_cms_pages_list.include?(current_fullpath)
end
```
config.railties_order
fix, defining ActiveStorage::Engine first, but now helper methods in app/helpers aren't being imported properly so it breaks the website. perhaps it's in :all? i'm relatively new to Rails, so wanted to understand better how to solve it
wondering whether anyone has had experience with integrating PgSearch with CMS? prior to upgrading to CMS 2.0 this code worked to allow Comfy pages to be indexed:
`module FragmentSearch
extend ActiveSupport::Concern
included do
include PgSearch
multisearchable against: :content, if: -> (record) { record.identifier == "content" }
end
endtrying to launch the server constantly fails with unidentified method 'has_many_attached?' despite ActiveStorage being installed
I tried
include ActiveStorage::Attached::Macros` but the same message still appears. help is much appreciated. TIA