# Use own helpers in Resource files

## TL;DR

Run `rails app:template LOCATION='https://railsbytes.com/script/V2Gsb9'`

## Details

A common pattern is to have some helpers defined in your app to manipulate your data. You might need those helpers in your `Resource` files.

#### Example:

Let's say you have a `Post` resource and you'd like to show a stripped-down version of your `body` field. So in your `posts_helper.rb` file you have the `extract_excerpt` method that sanitizes the body and truncates it to 120 characters.

```ruby