ruby tag

542 questions


1 answers
104 views
0
I cannot deploy the rails project to heroku.

Must see if you're frustrated!How to publish the Rails app on Heroku I am trying to deploy heroku by referring to the url above.Now that I put ruby version 2.7 in it, I can no longer create a blog app...

2 years ago

1 answers
88 views
0
Couldn't find User without an ID Error

Couldn't find User without an ID error appears in the code below.def index @user=User.find (params[:id]) sort_key=(params[:column].blank?||params[:order].blank?)?{updated_at:'DESC'}:{params[:column]=&...

2 years ago

1 answers
78 views
0
Which performance is better, ActiveRecord or Array, when performing multiple records narrowing in rails?

This is a performance discussion regarding how to narrow down records in the development of rails applications.When performing multiple record narrowing, which is better in response memory, using SQL ...


2 answers
70 views
0
Do not include modules in specific models

ApplicationRecord should include HogeModule and If you inherit ApplicationRecord, the Module will be included.If you don't want to include PiyoClass, please advise me on how to do it.class Application...

2 years ago

1 answers
92 views
0
I want to use Ruby's automatic shaping in VScode, but it says, "Formatter is not installed."

I would like to use the automatic shaping function with Shift+Option+F in VSCode.The ruby file formatter is not installed. I have tried various candidates from the Install Formatter button in the lowe...

2 years ago

1 answers
114 views
0
I want to sort after combining JSON arrays in Ruby.

Ruby combined the two JSON arrays a, b with the + operator to create an array called c=a+b.After that, I want to sort c by the key value id, but it doesn't sort well.I will write down what I tried and...

2 years ago

1 answers
84 views
0
I want to compare tables with Ruby on Rails

If the specified columns in the rails tables overlap, I would like to create a new table or array without duplicate records.For example, if you want to see duplicate names, use the following two table...

2 years ago

2 answers
72 views
0
Understanding How to Replace Path with a Variable in the Rails Subtemplate

Call a partial template from index and from that partial template.Furthermore, some templates have been called.in the bottom tier _shared/tag_listSpecify prepque_origques_path and set this to some var...

2 years ago

1 answers
130 views
0
I want to solve the NoMethodError that appears when I hit Gurunabi api with Ruby.

I want to earn information using Gurunabi API in LINEbot, so I write the code in ruby's controller file, but I am having trouble with the following error.I would appreciate your help.I, [2019-10-03T00...

2 years ago

3 answers
64 views
0
What is an Escape Character?

I'm not sure about escape characters, but When expressing backslash, it is expressed like ¥, but Are there any characters that have been decided as escape characters?http://home.a00.itscom.net/hatada/...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.