ruby tag

542 questions


5 answers
37 views
0
How ruby takes out and rearranges duplicate values in an array

Ruby takes out duplicate values in the array and How do I sort them in order of the number of duplicates and output them as arrays?[1,2,3,4,5,6,7,8,9,1,3,5,7,9,1,3,5,7,7,7,1,3,5,1,3,3,1,1]↓[1,3,5,7,9]

2 years ago

1 answers
74 views
0
I want to create an alarm clock-like app on Ruby.

I would like to operate irkit on time with Ruby to achieve home automation.It seems that gem clockwork can run at the specified time, but clockworkd-c clock.rb start and daemon or the foreground proce...

2 years ago

2 answers
127 views
0
Why use memcached or redis instead of cookies when saving sessions?

By default, Rails saves sessions to cookies.However, I often hear cases where you use memcached or redis because you don't like it.However, I always don't know why cookies are not good, so I'm muddled...


1 answers
37 views
0
I'm implementing mailer, but I can't send mail.

Currently, I am thinking of using mailer so that when I go to a certain page, the mail will be sent.However, the controller is not configured well, so it cannot be sent.If anyone knows, please let me ...

2 years ago

1 answers
37 views
0
Rails Cannot Boot to Production Environment

Ruby 2.6.0Rails 5.2.2 I wanted to boot in the production environment, so when I did rails=e=production and accessed at https://localhost;3000, I received an invalid response and the View was not refle...

2 years ago

1 answers
51 views
0
In the Rails application on AWS Cloud 9, the changes are not reflected when I check the page after starting up the local server on $rails server.

We are currently working on the Ruby on Rails tutorial on AWS Cloud 9, the recommended environment.Run $rails generate controller StaticPages home help in the Chapter 3, 3.2 Static Page 3.2.1 Generate...


1 answers
40 views
0
How to Write YARD Documents in YARD-ActiveSupport::Concern#included

When I try to write a document for the code in ActiveSupport::Concern#included on a Rails project, the YARD side does not recognize the comment and cannot generate the document.For example, the code i...

2 years ago

1 answers
121 views
0
No validation error message displayed

I would like to point to a message when validation fails, but the edit action gives an error message without any problems, but only during the crate action.Please let me know if you know anything.I ch...


2 answers
45 views
0
Ruby's countermeasures against open-uri's 400 Bad Request (access to Internet archive (archive.org)

Using Ruby's open-uri, use Internet archive at http://www.google.com/and https://web.archive.org/web/20150408183138/I am accessing https://suumo.jp/tochi/tokyo/sc_nishitokyo/nc_84783830/, and although...

2 years ago

1 answers
83 views
0
Uninitialized constant JSON error in JSON.parse

I'd like to extract information about a value from the bitFlyer API.I want to take out the child_order_state value in getchildorders of the API and display yes for COMPLETED, but I get an error.Thank ...

2 years ago
« - 41 - »

© 2024 OneMinuteCode. All rights reserved.