ruby tag

542 questions


1 answers
52 views
0
Generate 1000 numbers randomly

I want to create a random number from 1 to 1000.a=[1..1000]puts a.sortIf you do it, 1...It's only 1000 like this...How do I make all the numbers from 1 to 1000?

2 years ago

1 answers
28 views
0
How is Ruby these days?

These days, I am learning Ruby to develop web development or crawl.But when I heard it, there was very little talk about Ruby Mostly just Python stories.The reason why I chose Ruby is because of its b...

2 years ago

1 answers
127 views
0
Can we get the sum of the whole array without using the ear?

array = [123,321,12389]You want to find the total sum of the arrays in an array that stores these integers.Is there any other function like sum() other than adding it directly using each?sum = 0array....

2 years ago

2 answers
34 views
0
I want to measure the execution time of the function in ruby.How do you measure it?

I want to know how to measure the execution time in ruby

2 years ago

2 answers
98 views
0
Do I need to look at the migration file to understand the model structure in Rail?

Do I need to look at the migration file to understand the model structure in Rail?The model defines only the relationship between models.To view the model structure, you need to view the migration fil...

2 years ago

1 answers
33 views
0
Can I install the gem file in the computer?

on my computer.I downloaded the gem file, can I install it as gem install later?

2 years ago

1 answers
58 views
0
To process multi-line annotations in Ruby

In c, /**/ and in Python, ' are used to annotate several lines. How do I write multiple line annotations in Ruby?

2 years ago

1 answers
84 views
0
I wonder if Ruby On-Rails brings the contents of a specific tag when it comes to web crawl.

I'm doing an example of web crawling using the open source library nokogiri.I wonder how to get the contents of a specific tag.For example, <div class=story_area> <div class=title_area> &...


1 answers
127 views
0
Questions regarding the redirect method in ruby on rails.

Let's go to the previous pageQuestions regarding the redirect method.1.redirect : back2.redirect_back(fallback_location: root_path)When I wrote the first code, it said undefined method and there was a...


1 answers
39 views
0
What is ":require=>false:" in Gemfile?

gem 'whenever', :require => falseDoes this mean that a gem should be installed? Or do you mean you won't require it?

2 years ago
« - 52 - »

© 2024 OneMinuteCode. All rights reserved.