ruby tag

542 questions


1 answers
103 views
0
I want to change the temporary config set stop-writes-on-bgsave-error no to a permanent setting.

After restarting the ec2 instance, the following error occurred: MISCONF Redis is configured to save RDB snapshots, but is currently not possible to persist on disk. Commands that may modify the data ...


1 answers
78 views
0
About validations that require many-to-many models to be stored in intermediate tables

For example, for many-to-many models of User and Group, there is an intermediate table User_Group.When creating a group, how do I validate that user_group keeps at least one record, i.e., it must be l...

2 years ago

3 answers
128 views
0
I'd like to ask for the change and the number of coins.

I'd like to ask for the number of change bills and coins.I want to solve it with Ruby, but I don't know how to do it.The results of a 468 yen purchase and a 10,000 yen bill are as follows.Number of 5,...

2 years ago

1 answers
108 views
0
`color:value` warning when using `sass`

app/assets/stylesheets/style.css.scss has the following definitions:@each$color in red, purple, blue, green, yellow, orange { .c_#{$color}{ color:$color; }}The style is applied, but the following warn...

2 years ago

5 answers
111 views
0
Please tell me how to summarize Ruby two-dimensional arrays.

How do I organize a two-dimensional array with a person name in the array [0] and a score in the array [1]? score=[[taro, 10],[taro, 70],[taro, 170],[jiro, 90],[jiro, 55]]Desired Output taro=>250ji...

2 years ago

1 answers
114 views
0
I want Ruby to use the external API to view the pickup status.

Prerequisites/What you want to achieveRuby uses an external API to create a web application that allows you to check the pickup status of the delivery.I was able to link the API, but I don't know wher...

2 years ago

1 answers
94 views
0
Error on link_to after deployment of Device

Nice to meet you.When you deploy device in Ruby on Rails and access localhost:3000/login, you get the error ActionController::UrlGenerationError in Device::Sessions#new.Specifically, an error occurred...

2 years ago

1 answers
125 views
0
I want to create a program that I can search using Ruby etc. [Closed]

Do you want to improve this question?Edit this post and update the question to focus on one issueClosed 3 years ago.Three years agoI would like to create a program like the one below.1. You must be ab...


1 answers
105 views
0
Error importing mini_magic: File to import not found or unreADable: mini_magic

I am currently creating my own application.mini_magic was bundle install to post, resize, and paste the image on the page.When application.scss describes @import,Sass::SyntaxErrorFile to import not fo...

2 years ago

1 answers
106 views
0
I want to group the first to 15th lines and subsequent lines in a regular expressions

Line 1second lineline threeline fourline fiveline sixline sevenline eightline nineline 10line 11line 12line 13line 14line 15line 16line 17in response to the sentence 1st to 15th lines first I want to ...

2 years ago
« - 6 - »

© 2024 OneMinuteCode. All rights reserved.