# Gems

To add new gems (external tools/libraries written in Ruby) you can edit the `Gemfile_custom` file. For example, to add the [rails-footnotes](https://github.com/josevalim/rails-footnotes) gem you would add:

```ruby
gem "rails-footnotes", "~> 4.0"
```

And then run `bundle install` and follow any gem specific installation steps from its documentation.

**Note**: it's possible to stumble into conflicts when updating to a new Consul version. In repositories where you haven't added many custom gems, first accept the Gemfile.lock from the new version of Consul and then run `bundle install`. In general, it's recommended to be specific with the versions when defining gems in Gemfile\_custom. That way, you won't upgrade these gems when running `bundle install`.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.consuldemocracy.org/tech_docs/customization/gems.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
