prismicio/ruby-kit

View on GitHub
docs-usage/03-templating/18-uid.md

Summary

Maintainability
Test Coverage
# Templating the UID field

The UID field is a unique identifier that can be used specifically to create SEO-friendly website URLs.

## Usage

Here's how you would get the UID value from the retrieved document object.

```
<p> Page uid: <%= @document.uid =></p>
```