ruby tag

542 questions


2 answers
105 views
0
Understanding Bundler Version Verification Errors

Thank you for your help.Creating Rails environment.Install the bundleerbundler-vWhen you check the version in , Traceback (most recent call last):2:from/home/username/.rbenv/versions/2.5.0/bin/bundler...

2 years ago

1 answers
43 views
0
Understanding Few Rails Comments

Thank you for your help.It's been a while since I started developing Ruby on Rails.I've seen a lot of source code online, including StackOverFlow and Qiita.Most of them have no comments.There are time...

2 years ago

1 answers
40 views
0
About Ruby's self

ruby 2.2.1p85mac Mavericks This is a Ruby language question.As a result of executing the source code below, there are two things you don't understand.① Why is the output of the global variable $b nill...

2 years ago

1 answers
76 views
0
How VSCode Goes to a Source

This is a question about shortcuts in VSCode.I used it to describe Ruby's code, and I was able to move the method from F12, but I wanted to move it by listing the reference sources from the definition...

2 years ago

1 answers
48 views
0
I want to set my tag with acts-as-tagable-on

I would like to set my tag in acts-as-tagable-on and display the posts tagged with it, but if I set more than one, it will no longer be displayed.What should I do to be able to handle multiple setting...

2 years ago

1 answers
98 views
0
Understanding How to Return a Hash Format Response in an Array from an Aggregation Function

I'd like to submit JSON's response as follows, but it's clogged up.Could you give me some advice?Currently [[book, 10], [pen, 100]]Goals [ { category:book amount —10 }, { category:pen amount: 100 }]Cu...

2 years ago

1 answers
83 views
0
How do I use elements of a record as wildcards when searching find_by?

Is there a way to make an element of a record that is rails recognized as a wildcard or to implement something similar?There is a post model that shows the article you posted.The post contains the aut...


1 answers
41 views
0
I want to automatically delete the data posted by the user after a certain period of time.

We are creating SNS sites where users like Twitter can post. Specifically, the Ruby on Rails Tutorial sample application has just been completed, and we are now trying to add functionality. I would li...

2 years ago

1 answers
42 views
0
Understanding How Rails (4.2) Configure Sites in Subdirectories by Category

Sorry for the confusing title.We would like to specify categories in subdirectories and run sites with the same configuration.For example, example.com/car/articles lists articles about cars and exampl...

2 years ago

1 answers
88 views
0
About the form_for option

What do the resource and as:resource_name in ( ) of ruby's device mean?I am struggling because I cannot understand the form_for itself.Someone please.<%=form_for(resource, as:resource_name, url:reg...

2 years ago
« - 22 - »

© 2024 OneMinuteCode. All rights reserved.