ruby tag

542 questions


1 answers
35 views
0
Understanding Ruby Class Methods

I have a question about the Rruby class.Create ruby code below puts '===================================================='puts '1 class creation, instance method, getter, setter'puts '================...

2 years ago

1 answers
32 views
0
Array with contents class object is set differently by mom of class object

There are two arrays of class objects with the following contents, and I would like to take a set of differences.foo_people#=>[#<Person:0x007fd36402cee0>@name=ichiro,#<Person:0x007fd36484c...

2 years ago

1 answers
111 views
0
Deployment to Server Fails with SSHKit::Runner::ExecuteError Error

I want to deploy, but I get an error message.Incidentally, when I run $ssh127.0.0.1, I get the error message ssh:connect to host127.0.0.1 port22:Connection refused.I don't know what the cause is.Could...


1 answers
43 views
0
About Streaming Large CSVs in Ruby on Rails

I wanted to manipulate the data in the database and then output it to CSV, so I implemented it with reference to the following.http://qiita.com/yutackall/items/24a4487f629a9106a971If the size is small...

2 years ago

1 answers
42 views
0
Error installing rbenv

When installing rbenv,$echo'eval$(rbenv init-)'>>~/.bash_profile$ source to /.bash_profileAfter the , the following error occurs: -bash:eval:line1:syntax error near unexpected token`('-bash:eval...

2 years ago

1 answers
36 views
0
How to create a date object from a hash in ruby

date_hash={ :year=>2015, —month=>12, :day=>15,}I would like to create a date object by doing something like Date.new(date_hash).Would you like to play it like Ruby?

2 years ago

1 answers
71 views
0
rails6 reset css, etc. are double loaded

We are developing with rails6, but css is applied in double.The hierarchical structure of the folder is as follows:app/assets/stylesheets/_common.cssapp/assets/stylesheets/_icomoon.cssapp/assets/style...

2 years ago

1 answers
101 views
0
An error occurs when you do rails console in ruby on rails.

railsc Could not find listen-3.1.5 in any of the sources Run bundle install to install missing gems.Listen-3.1-5 is installed.Using listen 3.1.5 I did everything I searched on Google, but I can't solv...

2 years ago

1 answers
40 views
0
uninitialized constant TimelistsController:: Become Timelist

When I looked it up online, it said that the cause was a mismatch between the file name and the class name, but the file name is timelists_controller.rb and the code matches the class name as follows:...

2 years ago

1 answers
43 views
0
Cannot install with bundle install error

running environment:Windows 1p Pro (64bit)Vagrant 2.2.14Ubuntu 16.04.6 LTSDocker 18.09.7ruby —ruby 2.7.2p137 In order to install Ruby's sinatra library in the Docker containerbundle install encountere...

2 years ago
« - 34 - »

© 2024 OneMinuteCode. All rights reserved.