Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • May 23 15:54
    morgant opened #951
  • May 19 19:27
    donrestarone synchronize #950
  • Apr 21 02:11
    donrestarone opened #950
  • Apr 18 20:26
    0vermore commented #947
  • Apr 13 18:58
    gr8bit synchronize #886
  • Mar 30 20:04
    AdnanTheExcellent commented #947
  • Feb 03 16:00
    bkeepers commented #943
  • Jan 18 22:05
    mountaindog commented #947
  • Jan 17 04:11
    justin808 commented #949
  • Jan 03 19:43
    donrestarone opened #949
  • Dec 19 2021 19:36
    hopewise opened #948
  • Dec 04 2021 20:25
    rgaufman commented #937
  • Dec 04 2021 20:24
    rgaufman opened #947
  • Nov 29 2021 02:46
    shohey1226 commented #943
  • Nov 17 2021 14:34
    Fodoj opened #946
  • Nov 17 2021 09:16
    Fodoj commented #892
  • Oct 04 2021 15:16
    djmaze commented #907
  • Oct 04 2021 15:15
    djmaze commented #907
  • Oct 01 2021 09:06
    RadoslavMarinov opened #945
  • Sep 02 2021 14:49
    ritec commented #944
Justin Gordon
Hey everybody! Big thanks for the gem! It's awesome.
Big question: we click the <> 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?
@justin808 Please make an issue. I'm guessing that Redactor is doing something weird, but who knows.
Justin Gordon
@GBH the workaround is to only edit the HTML by adding attributes to the tags created by Redactor. My co-worker wanted to put a <style> block above the HTML. Are there any docs for what sort of limitations there are with editing the HTML?
Justin Gordon

How can I see what user did what update? Is there some glue to the current_user?


how can I update WYSIWYG editor
Is there any document for that
Hello! Does anybody know if there's an option to disallow or sanitize <script> tags entered into the WSIWYG? I had an outside security review recently and they flagged this as problematic...

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).

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

def redirect_cms_pages
redirect_cms_pages_list = ["/interviews", "/seminars"]
current_fullpath = request.fullpath
redirect_to '/' if redirect_cms_pages_list.include?(current_fullpath)


hey there! is that technically possible to create a custom tag which accepts a block argument? So it's possible to do something like that: {{ gallery-row }} image tags {{ /gallery-row }}
Tom Aranda
Is it possible to grant admin access on a page by page basis? I would like some administrators to be able to edit some pages in the site but not others. I am using CanCanCan and Devise. This is a major feature we are looking for.
hey there, I have problem when I deploy on heroku my picture disappear 😢
Any tips for me ?
Peter Albertson
I have a site with a lot of files and site admins need the ability to attach the same files somewhat often. I'm wondering if there's a reason why there's a limit on the ajax request for files in the redactor chooser?
This is from the files_controller.rb
I think because there's no pagination on that widget. Loading everything under the sun might be a bad idea.
Hi Team,
I want to call {{ cms:page:events:event_grid }} as per parent on particular layout can someone suggest me best approach ?
Stanley Liu
hi @GBH, i'm upgrading an old app to use ActiveStorage instead of Paperclip, and have almost completely set it up by now, the only issue is that now the ActiveStorage routes are inaccessible as they come after the CMS routes in priority, so I tried using your 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
Stanley Liu
never mind, i managed to solve it by putting setting the order [ActiveStorage::Engine, :main_app, :all] as shown
Matt Polito
Hello all! Was wondering if anyone else is seeing a huge performance hit when going to a comfy page edit? It seems to be from building the page structure tree to populate the parent and redirect dropdowns.
Matt Polito
I checked the issues/pr on github but didn't notice anyone else mentioning it so thought I'd pop in here to ask
Stanley Liu

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" }
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

Craig Hoffman
Question - My production server is running Nginx through a reverse proxy. The proxy url, for example, looks like this: https://server.example.com/hello/world. When I log in to Comfy and navigate the /admin, I see the left nav links, Site, Layouts, Pages, Etc... When hovering over the links, they do not show the correct URL. They show https://server.example.com/admin/sites. They need to show the full path such as https://exmaple.com/hello/world/admin/sites. Any idea where I can make such changes? Does this make sense?
Emmanuel Hayford
Hi all. I would like to reverse (newest blogs posts first) the order of blog entries in the admin page. How can I achieve this. I'll appreciate some directions. So on this page https://gyazo.com/05aeedba487e3f6a0411ade067577960 "Testo" should be last, "two" (which is latest) should be first. Any idea what to tweat to achieve this?
Damien Sutevski
on my CMS post, I am trying to render a partial, but it just ends up being a string:
<%= render partial: "views/comfy/blog/blogs_rail", locals: {} %>
in the layout, i have: {{ cms:partial 'views/comfy/blog/blogs_rail' }}
appreciate any guidance on this? have googled and looked around github. tried erb, tried slim, and messed around with partial content tag in my local gem.
Damien Sutevski
@siaw23 fyi, you can modify the index file for your posts to be whatever you want. then just put a date order on this: - @blog_posts.each_with_index do |post, index|
@blog_posts.order(created_at: :asc) do |post| (<--- probably this)
Damien Sutevski
@GBH any idea on my issue using partials? looks like a few other users in this chat history may have had similar issues
Damien Sutevski
@datenimperator it seems you also had this issue. the partial tag renders to ERB but doesn't get evaluated and just shows as a string once the view is rendered. how did you fix it?
Paul Bailey
Does anyone know how to stop the wysiwyg editor from stripping divs in the pages editor? I'd prefer to use the editor in the layouts page as its much nicer so if there is an easy way to switch that I'd be interested to hear too :)
I tried the coffeescript in comfy/comfortable-mexican-sofa#609 but that just broke the textarea box
is there any other way to change field name
{{ cms:page_file:other_image }}
it show Other Image
but I want to change label but keep other_image field
ex .{{ cms:page_file:other_image:name:img }}
Chris Payne
Hello, is there a way to add Ruby code to the Snippet or in the Layout content? for example, I've created a snippet called: footer-snippet and the content is: "<p>The current year is <%= Date.today.year %></p>" and then include it in my application view like "<%= cms_snippet_content('footer-snippet').html_safe %>" the current year isn't displayed, tried a fair few different combinations and couldn't find a solution.
hi everyone
I'm newbee to here this communitiy, I'm working on the migration from v1.12 to v2.0
now I wanna ask about "Javascript.js" part how v2.0 deal with it
Thanks in advance for you, appreciate your help
Does anyone know the current/future planned support for this project? I see a few MRs sitting around and no release in quite some time. @GBH
Peter Albertson
Has anyone ever successfully used the drag and drop sorting for a custom comfy scaffold?
Peter Albertson
nvm i figured it out lol
Peter Albertson
Not sure this channel is active anymore but has anyone ever exported into cms_seeds a non-comfy model?
in other words, I have a non-comfy model that renders like pages, so needs fragments, but this model gets left out when doing a cms export.
how do you embed a clickable mp4 file
Hey - seeing as this is so quiet what have people moved to?