The project is in a healthy, maintained state
Add helpers for Trestle resources
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
 Dependencies

Development

Runtime

>= 5.2, < 7
~> 0.9.0, >= 0.9.3
 Project Readme

Trestle Model Helper (trestle-resource_helpers)

Add helpers for Trestle resources

Getting Started

These instructions assume you have a working Trestle application. To integrate trestle-resource_helpers, first add it to your application's Gemfile:

gem 'trestle-resource_helpers'

Run bundle install, and then restart your Rails server.

To add a description block within an admin resource, use the resource_description method and define the translation key for the model:

Trestle.resource(:articles) do
  resource_description
end
en:
  admin:
    articles:
      resource_description: An article is a super dupper class to add some content to the blog!

N.B.: Replace the articles key by the table name corresponding to the resource's model.

License

The gem is available as open source under the terms of the MIT License.