542 questions
Let's say there are sentences in English that are about 900 characters long.I'd like to separate this by 300 characters, but in English, if you don't separate it by spaces, the words will be cut off i...
View content if all CMS content is listedIn order to create this specification, we have created the following helper methods:cm cms_fragment_content(:text_1) is a helper method used to build CMS using...
In the Rails tutorial, the only configuration to use postgresql in heroku was to add the following to Gemfile: group:production do gem 'pg', '0.20.0'endThe config/database.yml did not remain the defau...
We are working on Chapter 6 of Rails Tutorial (Japanese translation).Looking at the console, it looks like a user has been created.Couldn't find User with id=1Please tell me the reason why you throw u...
require 'thread'require 'time'require 'find'read, write = IO.pipe# child processingfork do testArray=Array.new inArray = { —id=>1000, —type=>A } testArray <<inArray testArray <<inArr...
ruby-el=STDIN.readlines; 10000.times {printl.sample}<**file_name.csv**|wc-lWhen I try to do this on the Power Shell, how should I describe it?(Get-Content**file_name.csv** | ruby-e l=STDIN.readline...
I'd like to deploy the rails app, but I got a precompilation error at the last stage, so I can't proceed.I entered this command bundle exec rake assemblies:precompile RAILS_ENV=productionThe error con...
I would like to implement it so that I can update records of multiple models in one form, but the label notation is not reflected well.The model and controller have the following code because we want ...
I am creating an app while looking at the Progate rails course.I'm stuttering to upload my profile picture.I brought the code exactly as it is from the Progate, but it doesn't work.I've never seen an ...
This is a Ruby language question.The sources are as follows:x=[abc, dejgk, loqp ]px.sort {|a,b|a<=>b}#1 Processingpx.sort {|a,b|b<=>a}#2 Processing# [abc, dejgk, loqp]# [loqp, dejgk, abc]H...
« | - 21 - | » |
© 2024 OneMinuteCode. All rights reserved.