
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
slices
Advanced tools
In-house CMS of With Associates.
Slices requires Ruby, MongoDB, and ImageMagick.
We suggest installing Ruby using ruby-install:
$ ruby-install --latest ruby
Install MongoDB and ImageMagick with Homebrew:
$ brew install mongodb ImageMagick # this can take a while
We'll need to create a Rails project:
$ gem install rails -v 3.2.22
$ rails _3.2.22_ new mywebsite -JOT
$ cd mywebsite
Add Slices to the project’s Gemfile:
gem 'slices', '~> 2.0.0'
Run bundler:
$ bundle install
Run the generator and follow the instructions to configure Slices for the first time:
$ rails generate slices:install
At the end of this process we should have a new Slices project with a git repository created, gems installed, database seeded and ready to run:
$ rails server
Visit http://localhost:3000/admin to begin using Slices.
The quickest way to create a Slice is to use the generator. In this example
we're going to create a Slice called title_body with title and body fields.
$ rails generate slice title_body title:string body:text
The syntax is field_name:field_type.
This command will create a new folder called title_body within apps/slices,
containing the required Ruby file, the Handlebars templates for the Admin view,
and the HTML for the front-end.
Field Type | Best for | HTML Control
-------------+------------------------+--------------------
string | Single lines of text | Text input
text | Multiple lines of text | Textarea
boolean | Settings | Checkbox input
date | Dates | Date input
datetime | Times | Datetime input
attachments | Files and images | Attachment composer
page | Links to other pages | Internal link field
An example of a complicated Slice:
$ rails generate slice carousel title:string gallery:attachments link:page
Slices is released under the MIT license.
Copyright (c) 2016 With Associates.
FAQs
Unknown package
We found that slices demonstrated a not healthy version release cadence and project activity because the last version was released 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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.