ruby tag

542 questions


1 answers
360 views
0
About Page id Display in Rails6 RSS Output

Unable to get page number from rss.Please tell me how to solve it.View in RSShttp://localhost:3000/articles/feed<?xml version='1.0' encoding='UTF-8'?><rss version='2.0'> <channel> &...

1 years ago

1 answers
534 views
0
M2 Mac fails to install rbenv install 3.1.3 due to errors

I want to install Ruby 3.1.3M2 MacBook Air macOS Monterey version 12.5.1Homebrew 3.6.12rbenv1.2.0ruby 2.6.8p205 (2021-07-07 revision 67951) [universal.arm64e-darwin21] Originally, I wanted to install ...

1 years ago

1 answers
492 views
0
I'd like to set the upper limit for display of the Rails each statement.

What do you want to doIn my own application, I use the following each statement to display posts, but I would like to limit the display limit to 10.At that time, I would like to make the specification...

2 years ago

1 answers
362 views
0
Rails cannot correctly populate datetime type values.

PrerequisitesData is not correctly placed in the datetime type column of your own application (Railsc does).I don't know why, so please help me.What do you want to doAt the time of user creation, I wo...


3 answers
356 views
0
When I created a new registration form in rails and wrote a test in RSpec that failed when the name was blank, I wrote a test in have_current_path that I expected a new registration screen as a transition destination after the failure, but somehow I expected a list screen and the test failed.

Run Environmentrails 7.0.3ruby 3.1.2rspec 3.11 When you use the browser, you can see that it transitions to the path you expected, but the RSpec system test does not match the path you expected, and t...

2 years ago

1 answers
425 views
0
I want to handle Net::OpenTimeout (execution expired) with Net::HTTP

PrerequisitesCurrently, we are using Ruby on Rails to send a GET request to Google Books Api to process the response and return Json data to Nxt.js.We have created a function to send a GET request to ...

2 years ago

1 answers
298 views
0
I want to change the background-size depending on the device I use.

What do you want to doThe background-size doesn't look good in the app I'm making. So I want to do something like contain for pc, cover for other things.Example Codepages.scss.top-main{ padding —200px...


1 answers
425 views
0
Directory Configuration for Rails+ Front-End

I don't know the typical directory configuration for developing Rails and Frontend in one repository.For example, in the case of Rails API+Next.js, I think the following options are available.What is ...


1 answers
393 views
0
Other than params, the values received in the controller after skipping from the rails front are described.

The params used in def create in the rails project is the singular name_params of the controller. Is this the rails specification?I'm worried that I can't find such a configuration file.Could you plea...

2 years ago

1 answers
500 views
0
I want to resolve ArgumentError: wrong number of arguments (given2, expected1) in Rails test

Rails 6.0.4Ruby 3.0.2DockerIn the Rails tutorial, we are building and developing an environment with Docker.Now we're going up to Chapter 10, but we're testing with minitest and we're writing the acce...

2 years ago
« - 2 - »

© 2024 OneMinuteCode. All rights reserved.