ruby tag

542 questions


1 answers
51 views
0
The console has net::ERR_ABORTED404 (Not Found) error and cannot be resolved.

I am experiencing a font_1_honokamin.ttf error in the console, but I cannot resolve it.style.scss@font-face{ font-family: 'A little tomorrow morning'; src:url('font_1_honokamin.ttf')format('truetype')...

2 years ago

1 answers
43 views
0
TAG FUNCTION A METHOD FOR TAG INFORMATION TRANSMITTED BY STRONG PARAMETER BY TAG FUNCTION AND STORAGE

Currently, we are trying to implement hashtag functionality in the portfolio posting function.We plan to encourage you to fill out the post form as follows:Tags (Please include half-width , between ta...

2 years ago

1 answers
43 views
0
How do I run and reflect rails associates:precompile while rails are running?

We are thinking of running the rails associates:precompile while the rails are running and reflecting it as it is without restarting.[Final goal] Registered users have their own profile page.The profi...

2 years ago

1 answers
74 views
0
To select controls the columns of the models associated with rails

when you want to limit which columns are retrieved using selectHow do I control the columns of the relevant model as well?Post>--CategoryI only want to get title for Post and name for Category.Imag...


2 answers
48 views
0
Understanding Class Interfaces

I'm making a class with Ruby, but I'm wondering which interface is better.Pattern Aclass Hoge def piyo=(piyo_data) # do_something @piyo=piyo_data end def fuga=(fuga_data) # do_something @fuga=fuga_dat...

2 years ago

3 answers
45 views
0
I want to search Rails for columns in related tables.

I'd like to create a search function on Rails, but I'm into it, so I'd like you to teach me.I would like to create a search form where Rails has models called Article and Item, and there is a URL colu...

2 years ago

1 answers
50 views
0
I want to give the same parameters to all paths in Rails.

Use url_options to include the same parameters in all paths of view, controller.#application_controller.rbdef url_options { first: first, last: last}endI did it like this, but redirect_to user_path(na...

2 years ago

2 answers
35 views
0
How to prevent the ranking from displaying more than one post by the same user

I am creating a posting service, and in order to create a ranking, I created it in the following form:@post_array={:post=>838, —count=>6, —rank=>1, —user_id=>14}, {:post=>837, —count=&...

2 years ago

1 answers
127 views
0
Ruby can't eliminate garbled characters

If you print Japanese in Ruby script, you will receive a Syntax Error.I guess it's probably a character code problem, but all of them have UTF-8 configured and There seems to be no problem and it's st...

2 years ago

1 answers
47 views
0
I would like to use active hash to display the price according to the selected item.

Hello, I am a beginner at ruby, ruby on rails, and JavaScript.Subject: I am creating a restaurant reservation site, but I would like to use active hash to implement it so that the selected course meal...

2 years ago
« - 30 - »

© 2024 OneMinuteCode. All rights reserved.