ruby-on-rails tag

696 questions


1 answers
512 views
0
rails console error due to credentials.yml.enc configuration

In this question, either Cloudinary or database was searching for a problem, and the credentials.yml.enc configuration was a problem, and a new problem appeared.In this configuration, Configuring cred...

1 years ago

1 answers
347 views
0
I don't know if Cloudinary or database settings are wrong.

I asked the following questions and was able to set them up.When I tried to post an image in the production environment, an error occurred.The Cloudinary configuration I was referring to should have b...


1 answers
389 views
0
docker compose run -- I want rm webbin/setup to run yarn install

I want yarn to work in dockefile web container.And docker compose run --rm webbin/setup to run yarn install.This is the current error.The Gemfile's dependencies are satifiedYarn executable was not det...


1 answers
578 views
0
rails db:create error: Could not find mysql2-0.5.4 in any of the sources

When I tried to create a database with rails db:create, I received the following error:Could not find mysql2-0.5.4 in any of the sourcesRun `bundle install` to install missing gems.Are you going to se...

1 years ago

1 answers
347 views
0
I don't know why enum is defined in included do in rails.

I heard that the method surrounded by included do~end will run when included.I think enum is defined here because I want to use this enum in the included class, but I think it is different from the or...

1 years ago

1 answers
443 views
0
I want to go through the system spec.

■BackgroundI'm working on an assignment at a certain school.There is a time limit, but the school mentor's response is late, so please let me ask you a question.■What you want to achieveI want to pass...

1 years ago

1 answers
421 views
0
I want to go through the system spec.

■BackgroundI'm working on an assignment at a certain school.There is a time limit, but the school mentor's response is late, so please let me ask you a question.■What you want to achieveI want to pass...

1 years ago

2 answers
319 views
0
I want to use Rspec expect method around

I am writing a test code using Rspec, but I want to define it somewhere and define it for each it like a method.I'm in trouble because I can't find the same article as I thought.I wonder how dry they ...

1 years ago

3 answers
367 views
0
Rails Tutorial Chapter 13 I don't know where the test code is testing

About the user micropost in Chapter 13 of the Rails tutorial.List 13.28: The [email protected]_s, response.body of the test to the User profile screen is the List 13.24:You may be ...

1 years ago

1 answers
302 views
0
How to retrieve images for each posted article with Rails 6meta tag & OGP settings

I am trying to get images of each posted article page on the site using meta tag & OGP settings in Rails 6, but it is not working.The following code is written at the top of the html.erb page to r...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.