Comfortable Mexican Sofa Versions Save

ComfortableMexicanSofa is a powerful Ruby on Rails 5.2+ CMS (Content Management System) Engine

v2.0.19

4 years ago
  • Support for Rails 6.0 (file upload bug is fixed)

v2.0.17

5 years ago

Quick fix so proper form builder is used.

v2.0.18

5 years ago
  • Fixing bugs mostly related to ActiveStorage attachments
  • Since Ruby SASS is getting deprecated dependency is changed from sass-rails to sassc-rails
  • Minor tweaks that accumulated over the last several months.

Note that existing Files might get their labels blanked-out. There was a label method that would output filename if label is blank. Now label is always set during creation.

v2.0.16

5 years ago
  • Fixing ERB injection vulnerability with #825. Good idea to upgrade if you're letting un-trusted users edit content.
  • Updating vendored Bootstrap to v4.1.1

v2.0.15

6 years ago
  • Updated Spanish translations
  • New Finnish translations
  • Fixing issue with cms_snippet_render and cms_fragment_render not working with some tags.

v2.0.14

6 years ago

Content tags have support for nested hashes and arrays. For example:

{{ cms:partial "path/to/partial", foo: { a: b, c: d }, bar: [a, b, c] }}

Will translate to:

<%= render partial: "path/to/partial", locals: {"foo" => {"a" => "b", "c" => "d"}, "bar" => ["a", "b", "c"] } %>

Keep in mind that hash keys and values are always going to be strings

Also fixed how AS variants are using image magic options. See https://github.com/rails/rails/issues/31518 for details

v2.0.13

6 years ago

This release is brought you by @glebm

New tag: page_file_link

It's similar to file_link tag that you can link previously uploaded files into content somewhere. Difference is that this tag links files uploaded for a specific page. Basically, you set up a bucket with all the files and then you can selectively drop them into the content.

Example set up:

On Layout content have {{ cms:files attachments, render: false }} tag defined.

During page creation populate that field with files and save. Now, during editing you may drag-and-drop previously uploaded files. See PR for more details: https://github.com/comfy/comfortable-mexican-sofa/pull/799

Ability to drag and drop is also extended to files uploaded site-wide.

See it in action:

File linking in action

  • All Javascript is converted from Coffeescript back to Javascript. Dependency on coffee-rails is dropped.
  • Support for Ruby < 2.3 is dropped. All strings are frozen now.

v2.0.10

6 years ago

v2.0.0

6 years ago
  • Paperclip is out, ActiveStorage that comes with Rails 5.2 is in. (No support for Rails apps lower than 5.2)
  • Site mirroring is gone. It was used as a clunky mechanism to support multi-language sites. Now you can have translations directly associated with pages.
  • Completely overhauled content parsing and rendering engine.
    • New tag format: {{ cms:tag_class params}}.
    • Old {{ cms:page:content:rich_text }} now looks like {{ cms:wysiwyg content }}
    • Tags handle params that may look like this: {{ cms:partial "path/to/partial", local_var_a: "a,b,c", local_var_b: 123 }}
    • Parser handles block tags. {{cms:block}} some content {{cms:end}}. No tags that use this just yet.
  • Renamed Comfy::Cms::Block to Comfy::Cms::Fragment.
  • CMS Fixtures are CMS Seeds now. Completely rewritten. Now all fragments are found in a single file.
  • Timepicker is replaced with Flatpickr.
  • Admin area is using Bootstrap 4 and is fully responsive (looks nice on a smartphone)
  • Generator updated to make 99% ready to go CRUDS.
  • Built-in sitemap generator is gone. Too clunky when you need to add more items there. Easy enough to make one for your own app.
  • Million of other small fixes and tweaks.

v1.12.10

7 years ago
  • Maintenance update to have CMS working for Rails 5 apps. There a lot of deprecation warnings that will be cleaned up in the future when support for Rails 4 is fully dropped.
  • Added Turkish locale