542 questions
I need to introduce Ruby, so I'm looking for a complete document in Japanese.Assuming you know other object-oriented languages, it's better to have a brief, quick read.There are a lot of introductory ...
How do I test Ruby's standard input/output with RSpec?The code to be tested is as follows:class Sample def run puts 'Please input your name' while input = STDIN.gets.chomp break if input==exit puts Yo...
I want to distribute a separate id to each form generated by the dynamic form.(I want to display each image that I pulled from the database) I'd like to introduce a dynamic form using coffeescript int...
Routing Error No route matches [POST]/It came out and got stuck.What to do.There is an input window on the front page to register the beta email address in form_for, and if you submit the email addres...
I would like to split the string by ,I want to match punctuation, but I don't want to match punctuation in parenthesesExample: aa(bb,cc),dd,ff↓(I want to match the '' part)aa(bb,cc)', 'dd', 'ffThe env...
PostidtitlebodyCommentidbodypost_idWhen you combine these two in a relationship, you don't know how to specify columns to retrieve data.For example, if I want to get Post.id, Post.title, Comment.id, C...
I don't know if the title is appropriate, but class Hoge def fuga {:piyo=>1} endendIf there is a class like this, I think it will be used as follows. hoge=Hoge.newhoge.fuga[:piyo]#=>1What is the...
In Ruby's array, I would like to range and delete the elements of the array.The following URL does not produce exactly the same result.https://uxmilk.jp/24060Ruby version is ruby 2.6.3p62 (2019-04-16 ...
on Ruby on Rails[ [Korean, 1, B, 2019], [Math, 2, A, 2019], [Science, 2, B, 2017] [Society, 2, C, 2019], [Art, 2, A, 2016] [Information, 2, S, 2017]]I would like to take the elements one by one from t...
When I try to add the seed data below,NOT NULL constraint failed:member_images.member_id:INSERT INTO member_images The error appears, but I don't know why.You can save it by setting the 0.upto(9) part...
« | - 44 - | » |
© 2024 OneMinuteCode. All rights reserved.