ruby tag

542 questions


1 answers
119 views
0
When referring to DB during each do processing

I'm a beginner at Ruby.I am trying to reference DB in each do with the following logic:I try to get the record under where conditions by taking the value of the maxrating variable where the rating is ...

2 years ago

1 answers
114 views
0
ArgumentError: wrong number of arguments (given2, expected 0) when trying to run a test on Rspec

I am currently creating Twitter-like applications.Users can post and comment on the post.This error occurs when commenting.Error running Rspec 1) CommentsController POST# create parameter is reasonabl...

2 years ago

1 answers
104 views
0
API response returned but Internal Server Error returned

If you send a POST request to the API with JavaScript code similar to the following, you will receive an Internal Server Error.Note: I use Ubuntu for OS, Apache for web server and Firefox for browser....

2 years ago

1 answers
71 views
0
If you move irb for some reason (Ignoring jaro_winkler-1.5.2 because it extensions are not built.) is displayed.

The message Ignoring jaro_winkler-1.5.2 because it extensions are not built.Try:gempristine jaro_winkler --version 1.5.2) appears for some reason.I ran gempristine jaro_winkler --version 1.5.2 through...

2 years ago

1 answers
73 views
0
I want to combine GIF images with Ruby

I just want to attach the GIF image, but I don't know how to do it.When I looked it up, I could only find RMagick and MiniMagick that I needed.The processing itself is simple, so if there is a way not...

2 years ago

1 answers
106 views
0
Could you tell me about the error related to Device to implement SNS authentication?

While implementing Facebook SNS authentication, when I ran rails, I received the following error:/home/ec2-user/.rvm/gems/ruby-2.5.1/gems/devise-4.6.2/lib/devise/rails/routes.rb:259:in`block in device...

2 years ago

1 answers
108 views
0
CALCULATION METHOD IN RUBY TWO-DIMENSIONAL ARRA

arrays=[7,5],[8,9,9,8],[13,13],[3,4,2,15,18],[3,2],[0,3,6,10,14,7],[7,10,9,11,14],[4,8,5,8,1,10],[5,11,21,2],[11,18,19,17]]=>[12, 34, 26, 42, 5, 40, 51, 36, 39, 65]I would like to have the result l...

2 years ago

1 answers
72 views
0
Learn how Ruby (Rails) investigates available options.

Thank you for your help.I used to maintain Java software.We are currently working on development using Ruby on Rails.In method arguments, I believe that the use of hash to specify variable length opti...

2 years ago

1 answers
149 views
0
I want to clear up the code that has become too nested due to too many conditional branches.

In order to study Selenium, I am developing an instagram web automatic tool at Ruby.In the script for writing comments to posts, Comment input fieldPost buttonI'm writing the code to get the two…, but...


2 answers
81 views
0
The search results under the combined conditions are not shown.

We are currently implementing a search for compound conditions in ruby on railsThere are two column entries that attempt to display records that match that column.I changed the view and model, but I s...

2 years ago
« - 5 - »

© 2024 OneMinuteCode. All rights reserved.