ruby tag

542 questions


1 answers
41 views
0
I would like to output validation results for different models at the same time in Rails.

I am currently making my own tag function on Ruby On Rails.This is probably a typical implementation of the Article and Tag models and the intermediate models. has_many:article_tags, dependent::destro...

2 years ago

1 answers
63 views
0
I want to recompile Vue.js

The ruby on rails application has View created in Vue.js.Some View changes were required, so I restarted the server after making the changes, but the changes were not reflected.I've looked into variou...


1 answers
45 views
0
Does not route directly to template files

According to Rails routing rules, the template should be routed directly under the following conditions:·Routing is defined in config/routes.rb [get'view/keyword']·There is no controller that supports...

2 years ago

1 answers
86 views
0
The i18n locale suddenly stopped working.

The i18n locale setting suddenly no longer works except in English (en).I don't know what the kick is, but http://sampleurl.com/jaWhen I open the site as , it doesn't display in Japanese, and all the ...

2 years ago

2 answers
104 views
0
The order of records (id) in the table will be changed after bulk update in the Rails app's Activerecord.

We have made a new registration as follows.After that, I pressed the Edit button to change the product name from Product B to Hogehoge.2 Stainless Steel BF-078 10K 350A 3P 2,000 3,000 4,000 9,0002 Sta...


1 answers
53 views
0
How do I put image_tag in hash value in rails?

Is there a way to put image_tag in hash value using Rails?I created view_objects/ under app/ and put logic about view in it for each class.To avoid writing logic to the view as much as possible.Instan...

2 years ago

1 answers
107 views
0
Questions about rails device

I'm creating a web app with rails.Deployment of device → Add unique column → Change information by user (like My Page) → Log in with user name, etc. I was working as a beginner...I was checking from t...

2 years ago

2 answers
47 views
0
undefined method `question_id' for nil: NilClass Error Appears

I'm working on an introductory book, but where is the association?does not work and the undefined method `question_id' for nil:NilClass appears.I think I'm writing the parts of belongs_to, has_many pr...

2 years ago

4 answers
44 views
0
a map-like method that prevents elements from being included from the beginning when nil returns as a result

For example, in an array, you want to create a new array in which the elements are multiplied only when they are multiples of 3.Specifically, if an array of [3,5,9] is given, the expected result array...

2 years ago

1 answers
60 views
0
I want to go through any routing in Rails, but I'm into it.

I am currently creating a web application with Rails, but there is a problem that cannot be solved in the routing part, so please let me know if you understand.What do you want to doWhen the show acti...

« - 23 - »

© 2024 OneMinuteCode. All rights reserved.