ruby tag

542 questions


1 answers
93 views
0
Ruby Script Translated PDF Metadata Not Recognized

You are trying to convert a PDF that does not have OCR into a searchable PDF with ScanSnapiX500 software, but it is not recognized as a conversion target.For reference to the article, Ruby's script co...

2 years ago

3 answers
88 views
0
Implementation of making models have uuid in rails

Currently, uuid is achieved by adding the following actions to the User model:def before_save_action_name uuid=SecureRandom.uuid uuid=SecureRandom.uuid while User.exists?(:uuid=>uuuid) self.uuid=uu...


1 answers
73 views
0
I want to know the meaning of the serialize_options key passed by the response_with argument in Device.

https://github.com/plataformatec/devise/blob/1a0192201b317d3f1bac88f5c5b4926d527b1b39/app/controllers/devise/sessions_controller.rbin the respond_with(resource,serialize_options(resource))In the end, ...

2 years ago

1 answers
79 views
0
Ruby reports undefined method `table' for CSV: Class (NoMethodError) error

When executing the following code, game.rb:3:undefined method `table' for CSV:Class(NoMethodError)An error similar to this appears.How can I deal with the error?ruby file (game.rb) require'csv'csv = C...

2 years ago

1 answers
55 views
0
I want to display images in rails.

I am creating an image posting function in Rails, but the image cannot be displayed and there is an error.I'd like to edit it just in case, but the same error appears.<img src=<%=/#{post.user.im...

2 years ago

2 answers
42 views
0
How to View rails Hours, Minutes, and Seconds

I want to show 1 hour 2 minutes 3 seconds in → view if I have hour:1 minute:2 second:3 and dataThe hour may be nil, so if the hour is nil, the time should not be displayed.minute, second contains a va...

2 years ago

2 answers
51 views
0
How do I record a night tour on the n×n board?

Previous Questions (N×n board counting night tours)I counted the night tours at .How can I do the following two additional points for this code?①A path satisfying the conditions is maintained.②List th...

2 years ago

1 answers
64 views
0
I want to know grammar names like process([command]){read}

While reading Ruby's Redis client source code (redis 4.0.1), lib/redis/client.rbto a file named def call (command) reply=process([command]){read} raise reply if reply.is_a? (CommandError)......It says...

2 years ago

2 answers
45 views
0
How RuboCop Warns About the Format of Hoge[0,1]

Note: RuboCop|Style/FormatString-QiitaAs you can see in the reference link, there is a way to print the message to stop using % in RuboCop and use format.In the same way, can I stop using hoge[1,2] in...

2 years ago

1 answers
113 views
0
js_errors:false but js error when jenkins test rspec

I'm using poltergeist to spin the rails feature spec on jenkins.Error Message One or more errors were raised in the Javascript code on the page.If you don't care about these errors, you ignore them by...

« - 39 - »

© 2024 OneMinuteCode. All rights reserved.