Sha256: 83efca58583d706e73cf673e05067e4fc1e220092430bdbaca95eea3a39638a1
Contents?: true
Size: 923 Bytes
Versions: 1
Compression:
Stored size: 923 Bytes
Contents
# 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: ```ruby 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: ```ruby Trestle.resource(:articles) do resource_description end ``` ```yaml 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](https://opensource.org/licenses/MIT).
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
trestle-resource_helpers-0.1.1 | README.md |