# \#rails

**URL:** https://discuss.circleci.com/tag/rails/10.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [Example of splitting by test name for rspec rails](https://discuss.circleci.com/t/example-of-splitting-by-test-name-for-rspec-rails/51459)

<div class="topic-metadata">

**Author:** [@zmf-framework](https://discuss.circleci.com/u/zmf-framework)\
**Replies:** 12\
**Last updated:** [June 17, 2025, 11:09pm UTC](https://discuss.circleci.com/t/example-of-splitting-by-test-name-for-rspec-rails/51459 "2025-06-17T23:09:21Z")

</div>

Does anyone here have an example app using --split-by=timings --timings-type=name successfully with Rspec/Rails in a parallelized (20 - 30 containers) set up? I can’t seem to get this to work. My current command is cir…

---

## [Parallelism messing up with time-based tests](https://discuss.circleci.com/t/parallelism-messing-up-with-time-based-tests/51860)

<div class="topic-metadata">

**Author:** [@Menighin](https://discuss.circleci.com/u/Menighin)\
**Replies:** 1\
**Last updated:** [September 6, 2024, 1:55am UTC](https://discuss.circleci.com/t/parallelism-messing-up-with-time-based-tests/51860 "2024-09-06T01:55:36Z")

</div>

Hey everyone, We have a big old build that is taking too long to run tests and Im trying to setup parallelism to speed things up. After the configuration, I can see the tests are indeed running in parallel and are much …

---

## [Unable to publish Ruby/Rails docker image from CircleCI](https://discuss.circleci.com/t/unable-to-publish-ruby-rails-docker-image-from-circleci/48871)

<div class="topic-metadata">

**Author:** [@mockdeep](https://discuss.circleci.com/u/mockdeep)\
**Replies:** 0\
**Last updated:** [August 8, 2023, 3:43pm UTC](https://discuss.circleci.com/t/unable-to-publish-ruby-rails-docker-image-from-circleci/48871 "2023-08-08T15:43:42Z")

</div>

We’re seeing an issue building a Ruby Dockerfile on CircleCI. I can build the image locally, but when we try to use the Docker orb to build the image, we see errors complaining about “Operation not permitted”: Step 10/2…

---

## [Yarn install using cache slow after update from cimg/ruby:2.7.7-browsers to cimg/ruby:3.0.6-browsers](https://discuss.circleci.com/t/yarn-install-using-cache-slow-after-update-from-cimg-ruby-2-7-7-browsers-to-cimg-ruby-3-0-6-browsers/47839)

<div class="topic-metadata">

**Author:** [@joekrump](https://discuss.circleci.com/u/joekrump)\
**Replies:** 1\
**Last updated:** [May 18, 2023, 5:40pm UTC](https://discuss.circleci.com/t/yarn-install-using-cache-slow-after-update-from-cimg-ruby-2-7-7-browsers-to-cimg-ruby-3-0-6-browsers/47839 "2023-05-18T17:40:06Z")

</div>

:wave: I recently updated my docker image for my build from cimg/ruby:2.7.7-browsers to cimg/ruby:3.0.6-browsers and after the update, my yarn install step is taking ~50 seconds, whereas before it was taking ~0.5 seconds…

---

## [Running circleci tests run does not run all my examples](https://discuss.circleci.com/t/running-circleci-tests-run-does-not-run-all-my-examples/47783)

<div class="topic-metadata">

**Author:** [@guiracine](https://discuss.circleci.com/u/guiracine)\
**Replies:** 3\
**Last updated:** [May 15, 2023, 2:38pm UTC](https://discuss.circleci.com/t/running-circleci-tests-run-does-not-run-all-my-examples/47783 "2023-05-15T14:38:12Z")

</div>

Hi, I changed my test step to use circleci tests run to take advantage of the new --fail-fast feature. Previously I was using the ruby/rspecs-test orb. Now I change to use this step’s command: RSPEC\_FILES=$(circleci …

---

## [Deployment is broken after rotating secrets](https://discuss.circleci.com/t/deployment-is-broken-after-rotating-secrets/46668)

<div class="topic-metadata">

**Author:** [@HeronQ](https://discuss.circleci.com/u/HeronQ)\
**Replies:** 3\
**Last updated:** [January 12, 2023, 12:20pm UTC](https://discuss.circleci.com/t/deployment-is-broken-after-rotating-secrets/46668 "2023-01-12T12:20:37Z")

</div>

Since the security alert has been released, We have been experiencing problem deploying our app since the 6th of January! I have rotated the secrets and upon triggering deployment we get this error: master queueable T…

---

## [CircleCI + Rails 7 + Yarn + assets:precompile - \`yarn: not found\`](https://discuss.circleci.com/t/circleci-rails-7-yarn-assets-precompile-yarn-not-found/46324)

<div class="topic-metadata">

**Author:** [@johnnyicon](https://discuss.circleci.com/u/johnnyicon)\
**Replies:** 0\
**Last updated:** [December 13, 2022, 5:59pm UTC](https://discuss.circleci.com/t/circleci-rails-7-yarn-assets-precompile-yarn-not-found/46324 "2022-12-13T17:59:44Z")

</div>

I am using Circle CI to run RSpec tests on a Rails project. I’m new to CircleCI, so I’m piecing together a build script from examples. My tests are failing because application.css is not in the asset pipeline. Here is t…

---

## [The canonical way to deploy Rails app to ECR with buildpacks](https://discuss.circleci.com/t/the-canonical-way-to-deploy-rails-app-to-ecr-with-buildpacks/44457)

<div class="topic-metadata">

**Author:** [@mladenoff](https://discuss.circleci.com/u/mladenoff)\
**Replies:** 0\
**Last updated:** [June 16, 2022, 11:29pm UTC](https://discuss.circleci.com/t/the-canonical-way-to-deploy-rails-app-to-ecr-with-buildpacks/44457 "2022-06-16T23:29:55Z")

</div>

We are changing hosting platforms and due to time restrictions, we want to continue to build our Rails app with buildpacks rather than going fully to a Dockerfile. We are aren’t looking to just push the code to AWS and …

---

## [Split-by=timings not splitting evenly](https://discuss.circleci.com/t/split-by-timings-not-splitting-evenly/43906)

<div class="topic-metadata">

**Author:** [@archonic](https://discuss.circleci.com/u/archonic)\
**Replies:** 0\
**Last updated:** [May 3, 2022, 9:35pm UTC](https://discuss.circleci.com/t/split-by-timings-not-splitting-evenly/43906 "2022-05-03T21:35:23Z")

</div>

I’m splitting by timings but I’ve noticed from the Timings tab that they are not evenly split. I could be done my suite in around half the time if it wasn’t running so many tests on run #0 I’ve tried renaming the pat…

---

## [Pushing to stage branch triggers deployment to stage app but builds from master branch](https://discuss.circleci.com/t/pushing-to-stage-branch-triggers-deployment-to-stage-app-but-builds-from-master-branch/43400)

<div class="topic-metadata">

**Author:** [@Alexwines224](https://discuss.circleci.com/u/Alexwines224)\
**Replies:** 4\
**Last updated:** [March 25, 2022, 4:48pm UTC](https://discuss.circleci.com/t/pushing-to-stage-branch-triggers-deployment-to-stage-app-but-builds-from-master-branch/43400 "2022-03-25T16:48:39Z")

</div>

As the title says, when I push to stage, I expect the latest commits from my stage branch to appear in my stage app on Heroku. The build triggers a deployment to Heroku, but it’s pushing my master branch, not my stage br…

---

## [Bundle exec doesn't work in rails app inside docker, Locals gems lists everything fine](https://discuss.circleci.com/t/bundle-exec-doesnt-work-in-rails-app-inside-docker-locals-gems-lists-everything-fine/43065)

<div class="topic-metadata">

**Author:** [@OVMIR](https://discuss.circleci.com/u/OVMIR)\
**Replies:** 0\
**Last updated:** [February 25, 2022, 4:31pm UTC](https://discuss.circleci.com/t/bundle-exec-doesnt-work-in-rails-app-inside-docker-locals-gems-lists-everything-fine/43065 "2022-02-25T16:31:02Z")

</div>

Hi, I have been having a hard time getting my CI/CD to work back up after some modifications to the docker-compose file, I am using now ruby:2.6.9-alpine3.15 image to set up my docker container. After successfully buil…

---

## [Circleci/mysql:8.0.21 + cimg/ruby:2.7.4-browsers failing](https://discuss.circleci.com/t/circleci-mysql-8-0-21-cimg-ruby-2-7-4-browsers-failing/41503)

<div class="topic-metadata">

**Author:** [@jamesarosen](https://discuss.circleci.com/u/jamesarosen)\
**Replies:** 5\
**Last updated:** [February 11, 2022, 4:59pm UTC](https://discuss.circleci.com/t/circleci-mysql-8-0-21-cimg-ruby-2-7-4-browsers-failing/41503 "2022-02-11T16:59:02Z")

</div>

We use the circleci/mysql:8.0.21 image for testing: - image: circleci/mysql:8.0.21 auth: username: $DOCKERHUB\_USERNAME password: $DOCKERHUB\_PASSWORD command: | --sql\_mode="NO\_ENGINE\_SUBSTITUTION" --d…

---

## [Rails Postgres - db:test:prepare - could not open extension control file pg\_stat\_statements](https://discuss.circleci.com/t/rails-postgres-dbprepare-could-not-open-extension-control-file-pg-stat-statements/41668)

<div class="topic-metadata">

**Author:** [@Cmarl](https://discuss.circleci.com/u/Cmarl)\
**Replies:** 2\
**Last updated:** [November 25, 2021, 12:22am UTC](https://discuss.circleci.com/t/rails-postgres-dbprepare-could-not-open-extension-control-file-pg-stat-statements/41668 "2021-11-25T00:22:21Z")

</div>

using image: cimg/postgres:12.7 and installing client/contrib via: - run: name: Install Postgresql Client command: sudo apt install postgresql-client postgresql-contrib Locally (and in other …

---

## [React components not being rendered when running feature specs on circleci](https://discuss.circleci.com/t/react-components-not-being-rendered-when-running-feature-specs-on-circleci/41715)

<div class="topic-metadata">

**Author:** [@lidimayra](https://discuss.circleci.com/u/lidimayra)\
**Replies:** 1\
**Last updated:** [October 30, 2021, 8:13pm UTC](https://discuss.circleci.com/t/react-components-not-being-rendered-when-running-feature-specs-on-circleci/41715 "2021-10-30T20:13:24Z")

</div>

Hello! I have a small Rails project and the front-end is built with ReactJS. I have some feature specs, and they work fine locally, but fail when running on circleci. My last attempt can be found here: And this is t…

---

## [Facing issue on Heroku deployment](https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391)

<div class="topic-metadata">

**Author:** [@souravongit](https://discuss.circleci.com/u/souravongit)\
**Replies:** 0\
**Last updated:** [October 1, 2021, 11:01am UTC](https://discuss.circleci.com/t/facing-issue-on-heroku-deployment/41391 "2021-10-01T11:01:01Z")

</div>

I am getting an error on heroku deployment. It was working before suddenly not working Please check the attached screenshot. Here is the setup-heroku.sh #!/bin/bash git remote add heroku $HEROKU\_GIT\_CANARY\_URL wget -q…

---

## [Rails : LoadError: cannot load such file -- 2.7/ffi\_c (circleci/ruby:2.7.4-node + circleci/postgres:12.8-ram)](https://discuss.circleci.com/t/rails-loaderror-cannot-load-such-file-2-7-ffi-c-circleci-ruby-2-7-4-node-circleci-postgres-12-8-ram/41113)

<div class="topic-metadata">

**Author:** [@pak](https://discuss.circleci.com/u/pak)\
**Replies:** 2\
**Last updated:** [September 7, 2021, 12:41pm UTC](https://discuss.circleci.com/t/rails-loaderror-cannot-load-such-file-2-7-ffi-c-circleci-ruby-2-7-4-node-circleci-postgres-12-8-ram/41113 "2021-09-07T12:41:16Z")

</div>

Hello, All of a sudden my builds stopped working on circleCI, on a new rails project. Here is my config.yml file : config.yml circleci · GitHub I am using circleci/ruby:2.7.4-node + circleci/postgres:12.8-ram docker i…

---

## [Rails cypress.io](https://discuss.circleci.com/t/rails-cypress-io/40585)

<div class="topic-metadata">

**Author:** [@boriscy](https://discuss.circleci.com/u/boriscy)\
**Replies:** 0\
**Last updated:** [July 8, 2021, 7:32pm UTC](https://discuss.circleci.com/t/rails-cypress-io/40585 "2021-07-08T19:32:24Z")

</div>

I would like to find a sample that runs cypress.io tests on CircleCI using ruby on rails, I have tried and I can’t figure out what is wrong, this one is one of the versions I have tried to run Cypress tests on CircleCI. …

---

## [Android Emulator Tests with Rails Backend](https://discuss.circleci.com/t/android-emulator-tests-with-rails-backend/39712)

<div class="topic-metadata">

**Author:** [@alan-pie](https://discuss.circleci.com/u/alan-pie)\
**Replies:** 1\
**Last updated:** [April 12, 2021, 7:25am UTC](https://discuss.circleci.com/t/android-emulator-tests-with-rails-backend/39712 "2021-04-12T07:25:59Z")

</div>

Hi CircleCI folks, We have an Android app that uses a Ruby on Rails backend, each in their own Git repository. I’d like to set up full end-to-end UI tests of the Android app that check out and spin up the backend. How c…

---

## [Ruby 3.0 image error, undefined symbol: rb\_cData](https://discuss.circleci.com/t/ruby-3-0-image-error-undefined-symbol-rb-cdata/38649)

<div class="topic-metadata">

**Author:** [@dluan](https://discuss.circleci.com/u/dluan)\
**Replies:** 2\
**Last updated:** [January 4, 2021, 8:27pm UTC](https://discuss.circleci.com/t/ruby-3-0-image-error-undefined-symbol-rb-cdata/38649 "2021-01-04T20:27:05Z")

</div>

Running a command RAILS\_ENV=test bin/rails db:create db:schema:load --trace in a job with the images: circleci/ruby:3.0.0-node-browsers and circleci/postgres:12.5 currently breaks with the following trace. #!/bin/bash…

---

## [Moving to -ram postgresql image leads to PG::ConnectionBad: PQsocket() can't get socket descriptor](https://discuss.circleci.com/t/moving-to-ram-postgresql-image-leads-to-pg-pqsocket-cant-get-socket-descriptor/38455)

<div class="topic-metadata">

**Author:** [@johnpaulashenfelter](https://discuss.circleci.com/u/johnpaulashenfelter)\
**Replies:** 2\
**Last updated:** [December 11, 2020, 1:57pm UTC](https://discuss.circleci.com/t/moving-to-ram-postgresql-image-leads-to-pg-pqsocket-cant-get-socket-descriptor/38455 "2020-12-11T13:57:06Z")

</div>

Hi folks, We’ve been building for a while on CircleCI, using our own Docker image (hosted by GCP) for a React/Rails app with ~2500 specs. Its been running specs in 4 parallel steps. This configuration has worked for us …

---

## [Is it prefer to use attach\_workspace for caching gems](https://discuss.circleci.com/t/is-it-prefer-to-use-attach-workspace-for-caching-gems/38017)

<div class="topic-metadata">

**Author:** [@guppy0356](https://discuss.circleci.com/u/guppy0356)\
**Replies:** 1\
**Last updated:** [November 6, 2020, 10:01pm UTC](https://discuss.circleci.com/t/is-it-prefer-to-use-attach-workspace-for-caching-gems/38017 "2020-11-06T22:01:37Z")

</div>

Is attach\_workspace used for restoring cache? What is the main purpose for? In the documentation, restore\_cache restores gems at working directory not to use attach\_workspace. I sometimes see that attach\_workspace and p…

---

## [Have a way to collect the logs of my jobs?](https://discuss.circleci.com/t/have-a-way-to-collect-the-logs-of-my-jobs/37860)

<div class="topic-metadata">

**Author:** [@luciotbc](https://discuss.circleci.com/u/luciotbc)\
**Replies:** 1\
**Last updated:** [October 22, 2020, 8:00pm UTC](https://discuss.circleci.com/t/have-a-way-to-collect-the-logs-of-my-jobs/37860 "2020-10-22T20:00:52Z")

</div>

Today I work on a project with some intermittent tests and I want to measure this so that I can make a decision on the best way to solve it. Can I list all broken jobs and download the logs?

---

## [Rails Postgis & GEOS](https://discuss.circleci.com/t/rails-postgis-geos/37029)

<div class="topic-metadata">

**Author:** [@flanger001](https://discuss.circleci.com/u/flanger001)\
**Replies:** 1\
**Last updated:** [August 12, 2020, 6:22pm UTC](https://discuss.circleci.com/t/rails-postgis-geos/37029 "2020-08-12T18:22:23Z")

</div>

I am trying to get a Rails app with a Postgres/Postgis db with Geos working and I am not able to do so. I found this link: https://discuss.circleci.com/t/libgeos-not-recognized-in-circleci-2-0-environment/22451 That ev…

---

## [Rails 5 & Yarn configuration](https://discuss.circleci.com/t/rails-5-yarn-configuration/35924)

<div class="topic-metadata">

**Author:** [@tomgavant](https://discuss.circleci.com/u/tomgavant)\
**Replies:** 0\
**Last updated:** [May 13, 2020, 8:32pm UTC](https://discuss.circleci.com/t/rails-5-yarn-configuration/35924 "2020-05-13T20:32:23Z")

</div>

I have just added circle to my app and I am using the sample config file laid out in the Rails docs - with a small change to get bundler to work properly: version: 2 # use CircleCI 2.0 jobs: # a collection of steps …

---

## [Latest Bundler fails to be used even when explicitly installed](https://discuss.circleci.com/t/latest-bundler-fails-to-be-used-even-when-explicitly-installed/34387)

<div class="topic-metadata">

**Author:** [@kyleboe](https://discuss.circleci.com/u/kyleboe)\
**Replies:** 8\
**Last updated:** [February 13, 2020, 11:55pm UTC](https://discuss.circleci.com/t/latest-bundler-fails-to-be-used-even-when-explicitly-installed/34387 "2020-02-13T23:55:33Z")

</div>

I am running into issues when attempting to use latest bundler (2.1.4) with docker. Even when checking bundler’s version I get errors: #!/bin/bash -eo pipefail bundle -v Traceback (most recent call last): 2: from /usr…

---

## [Getting ThinkingSphinx to run in RSpec](https://discuss.circleci.com/t/getting-thinkingsphinx-to-run-in-rspec/33670)

<div class="topic-metadata">

**Author:** [@kayla](https://discuss.circleci.com/u/kayla)\
**Replies:** 2\
**Last updated:** [January 6, 2020, 12:34am UTC](https://discuss.circleci.com/t/getting-thinkingsphinx-to-run-in-rspec/33670 "2020-01-06T00:34:44Z")

</div>

I’m working on setting up CircleCI for a Rails 5.1 / Ruby 2.3.1 application. We are looking to use Circle primarily to run our specs. This application uses ThinkingSphinx for search, and we have some specs that rely on …

---

## [Strange bug on upgrading from Rails 5.1](https://discuss.circleci.com/t/strange-bug-on-upgrading-from-rails-5-1/33585)

<div class="topic-metadata">

**Author:** [@Arepo](https://discuss.circleci.com/u/Arepo)\
**Replies:** 0\
**Last updated:** [December 2, 2019, 6:20pm UTC](https://discuss.circleci.com/t/strange-bug-on-upgrading-from-rails-5-1/33585 "2019-12-02T18:20:12Z")

</div>

Hi all, I’ve recently been attempting to upgrade our app from Rails 5.1 to 6.0.0. In the development environment everything (eventually) worked ok, and the tests passed on Circle CI, but then hit a pernicious bug when I…

---

## [Build check to ensure there are no unchecked-in changes after migration](https://discuss.circleci.com/t/build-check-to-ensure-there-are-no-unchecked-in-changes-after-migration/33006)

<div class="topic-metadata">

**Author:** [@zyqxd](https://discuss.circleci.com/u/zyqxd)\
**Replies:** 0\
**Last updated:** [October 20, 2019, 6:53pm UTC](https://discuss.circleci.com/t/build-check-to-ensure-there-are-no-unchecked-in-changes-after-migration/33006 "2019-10-20T18:53:35Z")

</div>

Is there a built in method to adding a check for unchecked in files after running rails db:migrate? Context: We run the annotate gem on a RoR system (6.0.0.rc1). We also use db/structure.sql. Personally, I’m just tire…

---

## [How do I configure Circle to accept pending tests when evaluating a build?](https://discuss.circleci.com/t/how-do-i-configure-circle-to-accept-pending-tests-when-evaluating-a-build/31685)

<div class="topic-metadata">

**Author:** [@Arepo](https://discuss.circleci.com/u/Arepo)\
**Replies:** 3\
**Last updated:** [August 2, 2019, 12:51pm UTC](https://discuss.circleci.com/t/how-do-i-configure-circle-to-accept-pending-tests-when-evaluating-a-build/31685 "2019-08-02T12:51:13Z")

</div>

Given a Rails app running an RSpec test suite, how do I configure Circle to consider test suites that include pending tests (but are otherwise green) to have passed? Current config.yml text follows (I’ll keep an eye on …

---

## [Neo4j suddenly disappears in the middle of the test suite running](https://discuss.circleci.com/t/neo4j-suddenly-disappears-in-the-middle-of-the-test-suite-running/31457)

<div class="topic-metadata">

**Author:** [@KoRMaK](https://discuss.circleci.com/u/KoRMaK)\
**Replies:** 13\
**Last updated:** [July 24, 2019, 10:47pm UTC](https://discuss.circleci.com/t/neo4j-suddenly-disappears-in-the-middle-of-the-test-suite-running/31457 "2019-07-24T22:47:05Z")

</div>

I have a rails app and am using CircleCI for my test suite. I have started to implement neo4j in the app, but have been running into a problem getting it to work in the CI environment. After some amount of time, my neo4j…

[Next page](https://discuss.circleci.com/tag/rails/10.md?match_all_tags=true&page=1&tags%5B%5D=rails)
