542 questions
I'm a programmer and not the developer of the Ruby script for questions.When I try to use the Ruby script for file format conversion, I get an error and stop halfway.I'm trying to convert dictionary d...
I am developing it at Ruby on Rails.Currently, there is a page on the View side that aggregates and draws statistics.Drawing takes nearly two minutes because it is not stored in DB and has a wide vari...
As the title says, I would like to implement something like getting only the string (-[]-[x]) in the check box from the Ruby markdown text and returning the array of the string. Could you please let m...
I usually use Ruby. I started studying Python, but I was having a hard time, so please let me know.class FizzBuzz def self.fizz?(i) i>0&(i%3) == 0 end def self.buzz?(i) i>0&(i%5) == 0 en...
class<<self def category_sort order(small_category_id: asc, id: asc) .group_by {|w|w.small_category.name} end endThe above results have the following hash:small_category1=>[data1,data2,data...
I want to get a response to book information by tapping Google books api from Rails' Book modelweb_1|Errno::EADDRNOTAVAIL (Failed to open TCP connection to:80 (Address not available-connect(2) for nil...
For example, Why don't I change the variable name for each action?@a, @b, @c, @d use the same variable as @messagePlease tell me about the benefits.class MessagesController<ApplicationController de...
The language is ruby, selenium version 2.2 and the browser is Firefox 31.4.After I click the login button on Facebook, I go to the members page. The member page has a very high probability that the lo...
Currently, I am thinking of creating a file called app/controller/crawl.rb and running it regularly on crontab, but is this correct?Or are there any rules on where to put the files to be executed regu...
Migrating with rails does not show any signs of a foreign key being created in schema.rb.* AssumptionsWe are currently creating Twitter-like applications with rails, implementing the ability for users...
« | - 40 - | » |
© 2024 OneMinuteCode. All rights reserved.