ruby tag

542 questions


1 answers
95 views
0
Successfully installed rails -6.0.4 but cannot load Such file --etc(LoadError) when executed

I'm a beginner.This is a poor question, but could you please advise me?Current State/EnvironmentAttempt to install rails ver6.0.3 in VSCode, but Successfully installed rails-6.0.4 but rails-v is not i...


1 answers
93 views
0
I'd like to build a local environment, but can I use vagrant and virtualbox to build two environments: Rails and PHP?

I'm a beginner engineer.Tell me about building a local environment.We are currently building Rails development environments (Rails, Ruby, PostgreSQL) using vagrant and virtualbox, but soon we will hav...


1 answers
68 views
0
Local Chat Does Not Work in a Production Environment

What do you want to doI want to set up a chat app that doesn't work in the production environment I want to identify the elements I need to improveRun EnvironmentRails 5.2.4.2nginx1.12.2unicorn 5.4.1A...


1 answers
37 views
0
rails6 I want to match the ID of the specified record with the ID I want to match.

I would like to randomly display the record and column specified in the problem model in the view, enter the answer in the text area, and then match the answer column of the previously specified recor...

2 years ago

1 answers
37 views
0
Regarding the event that the Ruby on Rails batch process cannot load the model.

I'm thinking of implementing Ruby on Rails to run web APIs regularly, process data, and insert data into DB.The model cannot be called due to an unknown cause error listed below.lib/tasks/repository.r...

2 years ago

1 answers
33 views
0
After_initialize will not resolve the n+1 issue with joins and includes.

ruby 2.2.1p85rails 4.2.1 Implemented with the following model configuration:class Student after_initialize —set_profile has_one:student_profile, dependent::destroy default_profile self.student_profile...

2 years ago

3 answers
70 views
0
What are the causes and actions to be taken when timing out during bundle installation?

I did bundle install and got a timeout error.Does rubygems.org fall at times like this?If you access it through a browser, it will be connected, but I don't know what the gem is, so please let me know...

2 years ago

2 answers
34 views
0
How to separate objects by thread in ruby's parallel

I'd like to use ruby's parallel to separate objects for each thread. Is there a good way?Image Parallel.each(array, in_threads:10) {|val| obj [thisThread] <<val}

2 years ago

3 answers
103 views
0
Unicorn's .socket file is not generated successfully

I am trying to build an environment with sinatra + unicorn + nginx.However, I am having trouble starting unicorn with an error.Please help me.Environment macosxvagrantcentos 6.6vagrantcentos 6.6Error ...

2 years ago

1 answers
35 views
0
Why can I pass an Exception object to the initialize super argument in Ruby's Exception wrapper?

I found the following when I tried to wrapper Ruby's Exceptionhttps://gist.github.com/rks/2577339#gistcomment-1313963Quoteclass ClientError <StandardError def initialize(e=nil) super # Preserve the...

2 years ago
« - 31 - »

© 2024 OneMinuteCode. All rights reserved.