ruby-on-rails tag

681 questions


0 answers
321 views
0
I can't push Heroku

BackgroundI'm working on an assignment at a certain school.I've asked too many questions to my school mentor, and I'm getting confused with the mentor's response, so it's even harder to understand.So ...

3 days ago

1 answers
239 views
0
Is CORS configuration the only CSRF countermeasure for Rails API x Next?

In the Rails API x Next configuration, we plan to use session cookies to manage the login status.In this case, just setting up CORS on the Rails API is enough to ensure CSRF countermeasures?If CORS is...


1 answers
358 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...

4 weeks ago

1 answers
183 views
0
Error building Rails environment: ActiveRecord::DatabaseConfiguration::InvalidConfigurationError

This error occurs when creating rails db:create when building rails environment with AWScloud 9.I would appreciate it if you could tell me how to solve this problem.error codeec2-user:~/environment/Ra...

4 weeks ago

1 answers
275 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
225 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...

1 months ago

1 answers
302 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 months ago

1 answers
185 views
0
Rails 7.0.4 cannot be installed (Error: cannot load Such file --psich(LoadError))

Background/Current StateI want to create a local development environment with Ruby 3.1.2 and Rails 7.0.4M1 chipBig Server 11.2.3Ruby 3.1.2 What do you want to doI want to install Rails 7.0.4Actual Err...

2 months ago

1 answers
216 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
267 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 - »

© 2022 OneMinuteCode. All rights reserved.