# \#ruby

**URL:** https://community.prismic.io/tag/ruby/41.md

[Latest](https://community.prismic.io/latest.md) · [Categories](https://community.prismic.io/categories.md) · [Tags](https://community.prismic.io/tags.md)

---

## [Retrieve Articles having specific category](https://community.prismic.io/t/retrieve-articles-having-specific-category/14810)

<div class="topic-metadata">

**Author:** [@haideralifsd786](https://community.prismic.io/u/haideralifsd786)\
**Replies:** 2\
**Last updated:** [December 26, 2023, 12:10pm UTC](https://community.prismic.io/t/retrieve-articles-having-specific-category/14810 "2023-12-26T12:10:16Z")

</div>

Hi, I am new to Prismic and am in the process of developing a GraphQL query. However, I am facing confusion regarding how to retrieve articles that belong to a specific category type. Here is the query \<\<~GRAPHQL …

---

## [Format of doc fetche via API is different from exported via (import/export) option](https://community.prismic.io/t/format-of-doc-fetche-via-api-is-different-from-exported-via-import-export-option/12199)

<div class="topic-metadata">

**Author:** [@vishal.verma](https://community.prismic.io/u/vishal.verma)\
**Replies:** 3\
**Last updated:** [January 18, 2023, 3:55pm UTC](https://community.prismic.io/t/format-of-doc-fetche-via-api-is-different-from-exported-via-import-export-option/12199 "2023-01-18T15:55:26Z")

</div>

Hi Sam, We are trying to take the backup of all the documents and custom type to our AWS bucket using Ruby on Rails application. Our plan is to use those backup files via Prismic import/export (Import/Export - Documenta…

---

## [Rewrite image URL - Ruby on Rails](https://community.prismic.io/t/rewrite-image-url-ruby-on-rails/6522)

<div class="topic-metadata">

**Author:** [@moreton.marving](https://community.prismic.io/u/moreton.marving)\
**Replies:** 7\
**Last updated:** [December 27, 2022, 4:56pm UTC](https://community.prismic.io/t/rewrite-image-url-ruby-on-rails/6522 "2022-12-27T16:56:05Z")

</div>

Hello, For SEO purposes, we would like to rewrite images URLs and not having a combination of letter/number into it such as: https://images.prismic.io/tourcrib/aa62ad2c-f9be-4d87-8ab0-5ef8f3be0dce\_coverss.jpeg?auto=comp…

---

## [Prismic::SearchForm::AuthorizationException](https://community.prismic.io/t/prismic-authorizationexception/9359)

<div class="topic-metadata">

**Author:** [@mohamed](https://community.prismic.io/u/mohamed)\
**Replies:** 5\
**Last updated:** [March 16, 2022, 11:00am UTC](https://community.prismic.io/t/prismic-authorizationexception/9359 "2022-03-16T11:00:33Z")

</div>

I don't get this error. It appears randomly when I make calls: Prismic::SearchForm::AuthorizationException: Prismic::SearchForm::AuthorizationException I'm using the ruby gem prismic.io | RubyGems.org | your community…

---

## [Can I search by data content?](https://community.prismic.io/t/can-i-search-by-data-content/8657)

<div class="topic-metadata">

**Author:** [@mohamed](https://community.prismic.io/u/mohamed)\
**Replies:** 7\
**Last updated:** [February 23, 2022, 8:48am UTC](https://community.prismic.io/t/can-i-search-by-data-content/8657 "2022-02-23T08:48:10Z")

</div>

Hello, If I have a document like this: { "results": \[ { "data": { "settings": \[ { "color": "red" } \] } \] } How I can retrieve all the documents that …

---

## [How to get prismic document in draft state using the the ruby gem](https://community.prismic.io/t/how-to-get-prismic-document-in-draft-state-using-the-the-ruby-gem/9066)

<div class="topic-metadata">

**Author:** [@mohamed](https://community.prismic.io/u/mohamed)\
**Replies:** 2\
**Last updated:** [February 17, 2022, 10:14am UTC](https://community.prismic.io/t/how-to-get-prismic-document-in-draft-state-using-the-the-ruby-gem/9066 "2022-02-17T10:14:17Z")

</div>

Hello, How I can get a Prismic Document in a draft state using the ruby gem? I'm implementing the Preview.

---

## [Ruby - Can't review a new page](https://community.prismic.io/t/ruby-cant-review-a-new-page/112)

<div class="topic-metadata">

**Author:** [@abdellatif.issegue](https://community.prismic.io/u/abdellatif.issegue)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 12:25pm UTC](https://community.prismic.io/t/ruby-cant-review-a-new-page/112 "2020-04-07T12:25:23Z")

</div>

Hi, I'm beginner with Prismic, I added a new page, and I added these dependencies at the codebase in: link\_resolver, pages\_controller.rb, application.rb, routes.rb, sitemap.rb and routes,yml, my problem is can't previe…

---

## [How to render a Key Text](https://community.prismic.io/t/how-to-render-a-key-text/131)

<div class="topic-metadata">

**Author:** [@abdellatif.issegue](https://community.prismic.io/u/abdellatif.issegue)\
**Replies:** 6\
**Last updated:** [April 10, 2020, 2:40pm UTC](https://community.prismic.io/t/how-to-render-a-key-text/131 "2020-04-10T14:40:45Z")

</div>

Hi, I use Prismic with Ruby and I dont know how to render a Key Text field? Thanks in advance,

---

## [Boolean field with the Ruby kit](https://community.prismic.io/t/boolean-field-with-the-ruby-kit/391)

<div class="topic-metadata">

**Author:** [@zoltan](https://community.prismic.io/u/zoltan)\
**Replies:** 1\
**Last updated:** [May 13, 2020, 10:37am UTC](https://community.prismic.io/t/boolean-field-with-the-ruby-kit/391 "2020-05-13T10:37:52Z")

</div>

Hi there, I have a running rails application with the latest prismic.io gem (v1.7.0) I've added a new content type with a boolean field but it seems that all boolean fields are missing from the response object. Is the…

---

## [getByUID gives wrong document?](https://community.prismic.io/t/getbyuid-gives-wrong-document/417)

<div class="topic-metadata">

**Author:** [@zoltan](https://community.prismic.io/u/zoltan)\
**Replies:** 3\
**Last updated:** [May 14, 2020, 3:22pm UTC](https://community.prismic.io/t/getbyuid-gives-wrong-document/417 "2020-05-14T15:22:02Z")

</div>

Hi there, I have a really strange issue. I queried our repo for a document by the doc's UID but the response object is different. Here is an example: api = PrismicService.init\_api('repo') =\> #\<Prismic::API:0x007ff33a…

---

## [Images and link are missing from content editor](https://community.prismic.io/t/images-and-link-are-missing-from-content-editor/395)

<div class="topic-metadata">

**Author:** [@likhit\_prismic-custo](https://community.prismic.io/u/likhit_prismic-custo)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 6:21am UTC](https://community.prismic.io/t/images-and-link-are-missing-from-content-editor/395 "2020-05-19T06:21:47Z")

</div>

Hi, I have created content and upload images and link into the content few days ago. The API call was working and images were loaded to my website. However, I discover today that my images and link are missing and I co…

---

## [Error: This preview token has expired](https://community.prismic.io/t/error-this-preview-token-has-expired/507)

<div class="topic-metadata">

**Author:** [@mathieu](https://community.prismic.io/u/mathieu)\
**Replies:** 2\
**Last updated:** [June 2, 2020, 3:32pm UTC](https://community.prismic.io/t/error-this-preview-token-has-expired/507 "2020-06-02T15:32:08Z")

</div>

Hello, I am using prismic for few days, I am really happy with it but I encountered some issues with the Preview feature. I followed your guide to setup the preview with the ruby kit on my web app and it worked as expec…

---

## [Uses slices with repeatable content relationships](https://community.prismic.io/t/uses-slices-with-repeatable-content-relationships/1182)

<div class="topic-metadata">

**Author:** [@ssharpe](https://community.prismic.io/u/ssharpe)\
**Replies:** 1\
**Last updated:** [July 13, 2020, 6:06am UTC](https://community.prismic.io/t/uses-slices-with-repeatable-content-relationships/1182 "2020-07-13T06:06:22Z")

</div>

Hey everyone I've been getting on really well with prismic using Rails up until now. I have a single team page and within that I have a slice with a repeatable zone with the "Content Relationship" type and this uses a "…

---

## [My Blog Posts show up in their category/tag, but not in "All"](https://community.prismic.io/t/my-blog-posts-show-up-in-their-category-tag-but-not-in-all/1207)

<div class="topic-metadata">

**Author:** [@inoel](https://community.prismic.io/u/inoel)\
**Replies:** 1\
**Last updated:** [July 15, 2020, 12:37am UTC](https://community.prismic.io/t/my-blog-posts-show-up-in-their-category-tag-but-not-in-all/1207 "2020-07-15T00:37:09Z")

</div>

I can't get why this is happening. My blog posts do not show up in "All".

---

## [Any way to query a group of different document types and then order them by a field name such as "release\_date" instead of document.first\_publication\_date](https://community.prismic.io/t/any-way-to-query-a-group-of-different-document-types-and-then-order-them-by-a-field-name-such-as-release-date-instead-of-document-first-publication-date/1274)

<div class="topic-metadata">

**Author:** [@leemc](https://community.prismic.io/u/leemc)\
**Replies:** 1\
**Last updated:** [July 20, 2020, 10:23am UTC](https://community.prismic.io/t/any-way-to-query-a-group-of-different-document-types-and-then-order-them-by-a-field-name-such-as-release-date-instead-of-document-first-publication-date/1274 "2020-07-20T10:23:38Z")

</div>

I have a group of different content types that I am trying to display in chronological order all together. Here's the page: Currently, the only way I'm able to order the different content types chronologically togethe…

---

## [Any plans to upgrade the Rails prismic example app to Rails 6?](https://community.prismic.io/t/any-plans-to-upgrade-the-rails-prismic-example-app-to-rails-6/1243)

<div class="topic-metadata">

**Author:** [@leemc](https://community.prismic.io/u/leemc)\
**Replies:** 3\
**Last updated:** [July 20, 2020, 6:06pm UTC](https://community.prismic.io/t/any-plans-to-upgrade-the-rails-prismic-example-app-to-rails-6/1243 "2020-07-20T18:06:15Z")

</div>

Hi, I recently forked the Prismic rails sample app and upgraded it Rails 6. I submitted a pull request with this upgrade. Would be nice if the Prismic team kept this app updated with current versions of Rails. Any pla…

---

## [Trouble using FetchLinks with another other than key\_text in Rails](https://community.prismic.io/t/trouble-using-fetchlinks-with-another-other-than-key-text-in-rails/1082)

<div class="topic-metadata">

**Author:** [@leemc](https://community.prismic.io/u/leemc)\
**Replies:** 14\
**Last updated:** [August 19, 2020, 5:57pm UTC](https://community.prismic.io/t/trouble-using-fetchlinks-with-another-other-than-key-text-in-rails/1082 "2020-08-19T17:57:01Z")

</div>

I keep running into an issue with FetchLinks with related content. I'm only able to pull in key\_text fields even though your docs say that I should be able to pull in Title, for instance. I'm able to pull in key\_text fi…

---

## [How to display a list of all tags used across different types of documents](https://community.prismic.io/t/how-to-display-a-list-of-all-tags-used-across-different-types-of-documents/1222)

<div class="topic-metadata">

**Author:** [@leemc](https://community.prismic.io/u/leemc)\
**Replies:** 8\
**Last updated:** [September 23, 2020, 4:35pm UTC](https://community.prismic.io/t/how-to-display-a-list-of-all-tags-used-across-different-types-of-documents/1222 "2020-09-23T16:35:45Z")

</div>

I'm using prismic with Rails and having trouble returning a list of all tags in order to populate a sidebar navigation. I can do something like this: @all\_posts = api.query( \[ Prismic::Predicates.at("document.type…

---

## [Prismic team: Please don't let the Ruby gem die!](https://community.prismic.io/t/prismic-team-please-dont-let-the-ruby-gem-die/2392)

<div class="topic-metadata">

**Author:** [@alistairholt](https://community.prismic.io/u/alistairholt)\
**Replies:** 1\
**Last updated:** [October 23, 2020, 2:50am UTC](https://community.prismic.io/t/prismic-team-please-dont-let-the-ruby-gem-die/2392 "2020-10-23T02:50:56Z")

</div>

Not much going on in the Ruby gem repo – Issues and PRs are being ignored? Is anyone maintaining it?

---

## [Not able to execute graphql query on prismic repository using ruby](https://community.prismic.io/t/not-able-to-execute-graphql-query-on-prismic-repository-using-ruby/3127)

<div class="topic-metadata">

**Author:** [@sshinde](https://community.prismic.io/u/sshinde)\
**Replies:** 1\
**Last updated:** [December 15, 2020, 11:16pm UTC](https://community.prismic.io/t/not-able-to-execute-graphql-query-on-prismic-repository-using-ruby/3127 "2020-12-15T23:16:52Z")

</div>

I want you to execute graphql query on Prismic repository with ruby code. I have followed Prismic’s documentation for PHP, Laravel, Java, .NET, and Ruby has moved to GitHub - Prismic article by which I was able to query…

---

## [Rich text without paragraph keep out putting paragraph](https://community.prismic.io/t/rich-text-without-paragraph-keep-out-putting-paragraph/4602)

<div class="topic-metadata">

**Author:** [@benoit.molenda.ext](https://community.prismic.io/u/benoit.molenda.ext)\
**Replies:** 1\
**Last updated:** [March 22, 2021, 10:37am UTC](https://community.prismic.io/t/rich-text-without-paragraph-keep-out-putting-paragraph/4602 "2021-03-22T10:37:25Z")

</div>

With this configuration just adding the value "hello" With the following code: \<%= @document\["blog-post.title"\].as\_html(link\_resolver()).html\_safe %\> output this: \<p\>my content\</p\> where I would expect my conte…

---

## [Query by type and custom field](https://community.prismic.io/t/query-by-type-and-custom-field/5678)

<div class="topic-metadata">

**Author:** [@chris3](https://community.prismic.io/u/chris3)\
**Replies:** 3\
**Last updated:** [June 9, 2021, 1:56pm UTC](https://community.prismic.io/t/query-by-type-and-custom-field/5678 "2021-06-09T13:56:50Z")

</div>

Hi, New to prismic and seems very straight forward so far! I am however struggling to query a document type by a field. Is this possible please? I don't want this to be filtered by content relationship, but instead of …

---

## [Release without a label breaks the ruby-kit](https://community.prismic.io/t/release-without-a-label-breaks-the-ruby-kit/6155)

<div class="topic-metadata">

**Author:** [@gprice](https://community.prismic.io/u/gprice)\
**Replies:** 5\
**Last updated:** [July 16, 2021, 12:13pm UTC](https://community.prismic.io/t/release-without-a-label-breaks-the-ruby-kit/6155 "2021-07-16T12:13:04Z")

</div>

Around 5:30am PT July 7th 20201 we had an app using a Prismic repository spike in errors for several hours with several different exceptions. Over the course of the day as we investigated, the app experience a loss of re…

---

## [Crucial LOC missing in ruby preview example](https://community.prismic.io/t/crucial-loc-missing-in-ruby-preview-example/6758)

<div class="topic-metadata">

**Author:** [@david5](https://community.prismic.io/u/david5)\
**Replies:** 4\
**Last updated:** [August 30, 2021, 3:18pm UTC](https://community.prismic.io/t/crucial-loc-missing-in-ruby-preview-example/6758 "2021-08-30T15:18:30Z")

</div>

Hi! The documentation for the preview functionality for Ruby is missing crucial line of code. In your Rails starter there's an additional LOC setting the preview cookie value to the preview token created when clicking …

---

## [Rails - Some pages are not returned when making a request](https://community.prismic.io/t/rails-some-pages-are-not-returned-when-making-a-request/7094)

<div class="topic-metadata">

**Author:** [@zac](https://community.prismic.io/u/zac)\
**Replies:** 3\
**Last updated:** [September 27, 2021, 10:27am UTC](https://community.prismic.io/t/rails-some-pages-are-not-returned-when-making-a-request/7094 "2021-09-27T10:27:00Z")

</div>

Hello all, I have a specific issue. When I am making a request to index our blog\_post page type, sometimes some of the pages are missing from the response. The pattern tends to be that when we add a new blog\_post page a…

---

## [Release without description causes error in Prismic Ruby client](https://community.prismic.io/t/release-without-description-causes-error-in-prismic-ruby-client/7514)

<div class="topic-metadata">

**Author:** [@tech15](https://community.prismic.io/u/tech15)\
**Replies:** 2\
**Last updated:** [November 2, 2021, 5:05pm UTC](https://community.prismic.io/t/release-without-description-causes-error-in-prismic-ruby-client/7514 "2021-11-02T17:05:57Z")

</div>

If you create a Release without a description, which is possible by Publishing a document and choosing "Publish at a specific date and time", the ref returned by Prismic's API will have a null label and the Prismic clien…

---

## [Slice JSON in wrong order](https://community.prismic.io/t/slice-json-in-wrong-order/7985)

<div class="topic-metadata">

**Author:** [@clementine](https://community.prismic.io/u/clementine)\
**Replies:** 3\
**Last updated:** [November 23, 2021, 9:21am UTC](https://community.prismic.io/t/slice-json-in-wrong-order/7985 "2021-11-23T09:21:58Z")

</div>

The JSON we receive from prismic has the wrong order for some of our articles custom types. For most articles we receive the right order {"paragraph\_title"=\> "paragraph\_content"=\> } But for a few like this one, The …
