ruby tag

539 questions


1 answers
238 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...

3 weeks ago

1 answers
344 views
0
NameError When Loading SAML Authentication Plug-in in Redmine 5.0.2

We are deploying saml authentication plug-in in Redmine (5.0.2) for Docker.The bundle install, bundle execrake has been completed and the deployment itself appears to be successful, but placing the co...

3 weeks ago

2 answers
175 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 months ago

3 answers
271 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 months ago

1 answers
210 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 months ago

1 answers
326 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 months ago

1 answers
289 views
0
DB fails to boot locally after Rails deployment.

What you can't doAfter successfully deploying my own application on Render.com, I tried to proceed with the development locally, but now I can't access DB.Error ContentsI was going to test with Rspec,...


1 answers
285 views
0
About Page id Display in Rails6 RSS Output

Unable to get page number from rss.Please tell me how to solve it.View in RSShttp://localhost:3000/articles/feed<?xml version='1.0' encoding='UTF-8'?><rss version='2.0'> <channel> &...

1 months ago

1 answers
316 views
0
M2 Mac fails to install rbenv install 3.1.3 due to errors

I want to install Ruby 3.1.3M2 MacBook Air macOS Monterey version 12.5.1Homebrew 3.6.12rbenv1.2.0ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] Originally, I wanted to install ...

2 months ago

1 answers
371 views
0
I'd like to set the upper limit for display of the Rails each statement.

What do you want to doIn my own application, I use the following each statement to display posts, but I would like to limit the display limit to 10.At that time, I would like to make the specification...

3 months ago
- 1 - »

© 2023 OneMinuteCode. All rights reserved.