542 questions
I am developing at rails.An error occurred when I tried to boot to rails server.How can I solve this problem?I would appreciate it if you could reply.=>Booting Puma=>Rails 5.1.5 application star...
I am currently creating a search form on scope.I want to search for multiple columns from two models and one model, but I don't know what it says.Currently, I can search for one column for each of the...
Ruby's scripts are struggling with the phenomenon of keeping memory if it ever gets huge.require 'objspace'array=[ ](1..20).each_with_index do|i| array<<'a'*1000000 puts memsize:#{ObjectSpace.me...
We have the following data that we grouped by date in Ruby.{[2021, 12, 28, 1]:2, [2021, 12, 28, 2]:2, [2021, 12, 28, 3]:2, [2021, 12, 28, 4]:4, [2021, 12, 28, 7]:2, [2021, 12, 28, 5]:1}I would like to...
Sample rails code I'd like to practice hitting hard.Sites with lots of rails sample codes Do you have any books?I looked for it, but I couldn't find it because I wasn't good at finding it.I would like...
in a Dashboard Controller, where you want to view a list of users, etc.uninitialized constant dashboardThe error appears.I'd like to make the cancellation work even if the controller and Ability targe...
Using X as a variable, +1or-1 is added according to the conditions of の, and when the bias of X becomes +5or-5, it is shifted to or or に.Also, I would like to write a code saying that it will be reset...
I am a programming beginner doing rails-tutorial.As I proceeded with the tutorial, I received a Blocked host: error on the AWS server.You want to know how to resolve this error.I will write the detail...
#zip filenamezip_file_name = test.zip# zip file pathzip_file_path = File.join Rails.public_path, zip_file_name# a file to be included in a zip filefile=xxxxxxx/xxxxx/test.txt`zip-jm#{zip_file_path}#{f...
I want to read the text file sql.txt with the ruby statement and run it in mysql2, but it doesn't work.#DB Settingsdb=Mysql2::Client.new(...)# Loading sql Statementssql = ' 'File.open(./sql.txt, r) do...
« | - 27 - | » |
© 2024 OneMinuteCode. All rights reserved.