Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Prefer Simplicity.
____ __ __ _ ____
___ ___ / ___|__ _| \/ ( ) ___|
/ _ \ / __| | / _` | |\/| |/\___ \
| (_) | (__| |__| (_| | | | | ___) |
\___/ \___|\____\__,_|_| |_| |____/
ocCaM'S is a revival of ComfortableMexicanSofa, with all due thanks and acknowledgements to Oleg Khabarov, and others. 'Comfy' is in my experience the simplest and cleanest of all Rails-based CMSes. Seeing that its last commit was in 2020, I was determined that it should not die on the vine as RadiantCMS did some years ago.
ocCaM'S, pronounced "AH-kums" is a nod to Occam's Razor - for this Rails-based Content Management System endeavors to follow the principle that unnecessarily complex models should not be preferred over simpler ones.
rails active_storage:install
and then rake db:migrate
Add gem definition to your Gemfile:
gem "occams"
bundle install
rails generate occams:cms
rails active_storage:install
rails db:migrate
Now take a look inside your config/routes.rb
file. You'll see where routes attach for the admin area and content serving. Make sure that content serving route appears as a very last item or it will make all other routes to be inaccessible.
occams_route :cms_admin, path: "/admin"
occams_route :cms, path: "/"
After finishing installation you should be able to navigate to http://localhost:3000/admin
Default username and password is 'user' and 'pass'. You probably want to change it right away. Admin credentials (among other things) can be found and changed in the cms initializer: /config/initializers/occams.rb
Before creating pages and populating them with content we need to create a Site. Site defines a hostname, content path and its language.
After creating a Site, you need to make a Layout. Layout is the template of your pages; it defines some reusable content (like header and footer, for example) and places where the content goes. A very simple layout can look like this:
<html>
<body>
<h1>{{ cms:text title }}</h1>
{{ cms:wysiwyg content }}
</body>
</html>
Once you have a layout, you may start creating pages and populating content. It's that easy.
For more information on how to use this CMS please refer to the Wiki. Section that might be of interest is the entry on Content Tags.
The Occams repository can run like any Rails application in development. It's as easy to work on as any other Rails app. For more detail see CONTRIBUTING
bin/rails db:migrate RAILS_ENV=test
rake db:test:prepare
rake test
FAQs
Unknown package
We found that occams demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.