Listings

The listings component from Instrumental Components provides a clean and flexible way to display indexed items. The perfect component to use on your index views!

Each listing can display a link, description, settings dropdown menu, icon, and more.

You'll find the listing component built into the Instrumental Scaffolds component, which puts it into action on the index view for the resource you've scaffolded.

Installation

Copy
rails g instrumental:listings

To insert a component into a view:

Copy
rails g instrumental:listings:insert

Customization

Find all of your customization options (via local variables) in these files:

app/views/shared/components/listings/_listings.html.erb
app/views/shared/components/listings/_listing.html.erb

The _listings.html.erb file manages the container for your listings. The _listing.html.erb file manages each individual listing.

Instrumental Components

I created Instrumental Components to make designing and building professional apps with Ruby on Rails easy, fast, and fun. I use it on all of my projects and I hope it helps you build something great.

Brian Casel
Brian Casel
Creator of Instrumental Components
Learn more Send me a question or request