ruby tag

542 questions


1 answers
49 views
0
Object-Oriented Design Practice Guide in Ruby Error in Constructed Bicycles

Object-Oriented Design Practice GuideWe are learning from Ruby's evolving flexible applications.CHAPTER VIII COMBINING OBJECTS IN COMPOSITION8.4 Actual Cycle sample source configuredWhen I moved it on...

2 years ago

2 answers
105 views
0
I want to increase nonce for each HTTP request.

I use coincheck API and gem to create an app.When I tried to execute two requests without pause, {success=>false, error=>Nonce must be incremented}The error returned.Documentation includes A pos...

2 years ago

1 answers
42 views
0
Understanding Standard Method Utilization within a Controller Class

Nice to meet you.I'm a beginner at ruby.I am trying to create a web system using ruby on rails.There was an error that could not be resolved, so I would like to ask you a question.in the controller cl...

2 years ago

1 answers
122 views
0
Error attempting to launch Unicorn in Rails

Prerequisites/What you want to achieveI would like to deploy with the ec2-user of AWS.It used to be ready, but suddenly I can't deploy it.I want to be able to deploy.Problems/Error Messages you are ex...


2 answers
49 views
0
I want to create a like function, but the foreign key is not referenced, so it becomes undefined method `id' for nil: NilClass

When I tried to implement the like function and pressed the post button, I tried to transition to the post list page, but I got an error on the like button.I used this article as a reference.Rails Cre...

2 years ago

1 answers
90 views
0
factorybot does not work

Currently using rspec to study test code.So I am using factory_bot, but I get an error in the build.KeyError: Factory not registered:Here is the error statement.https://masawada.hatenablog.jp/entry/20...


1 answers
93 views
0
I don't understand why I run expect before the code I want to test when I use the mock in RSpec.

I created the test code below, but if I put the code expect under get:index params, I get an error if there is no value.It's strange that other test codes (without a mock) had code that you wanted to ...


1 answers
46 views
0
Please tell me how to round off the Rails app's consumption tax decimal point.

The view has item name, quantity, and unit price.If the quantity is 1 and the unit price is 485,560, the consumption tax is 38,844.8->38,845If the quantity is '-1' and the unit price is '485,560', ...

2 years ago

1 answers
89 views
0
Upload an image using carrierwave in Rails

I'm developing an app with Ruby on Rails 4.Carriewave has been introduced to implement the image upload function.For image upload, the blog function has been added so that you can post blog posts and ...


1 answers
129 views
0
Heroku does not reflect the code of the locally edited gem.

bundle install -- path vendor/bundleI edited the gemfile downloaded in and saved it over.herokupushHowever, editing is not reflected in the production environment.How can I edit the gem and use it?Add...

2 years ago
« - 19 - »

© 2024 OneMinuteCode. All rights reserved.