ruby-on-rails-5 Questions
1
Solved
In my routes I have a route similar to GET 'check/:secret.
When I send a request to that route in the logs I see:
Started GET "/check/the-secret-here" for ::1 at 2021-01-14 16:38:01 -0600...
Reggy asked 14/1, 2021 at 22:52
5
Solved
I'm using Rails 5. I have this controller ...
class MyObjectsController < ApplicationController
def create
my_object = MyService.build(create_params)
I would like to call the create method...
Matelot asked 1/10, 2019 at 20:25
3
Solved
I tried to find out the difference between the Puma and Webrick, but didn't get it or satisfied with it.
So could any one please share information regarding it.
Castanon asked 5/4, 2018 at 14:10
2
I want the translations on my website to fallback to English when a translation isn't found. How to do that?
There're 2 ways I know of, but it's unclear which should be used with Rails 5 and which ...
Meliamelic asked 26/7, 2018 at 13:44
9
Solved
I am receiving this error when I try to load a page in my new rails 5.1 app using webpacker. I would like webpacker to handle CSS as well.
Started GET "/" for ::1 at 2017-09-01 12:20:23 -0400
Pro...
Matheny asked 1/9, 2017 at 16:38
7
Solved
In Rails 5.1, you can do bin/rails test to run normal tests, and bin/rails test:system. What is the Rails sanctioned way of running both at the same time?
Flavoprotein asked 21/8, 2017 at 13:40
3
Solved
I have generated a rails 5 api application. But I want my app with home page. For that I generated a home controller and added view file i respective views/home/index.html.erb
But when I tried acc...
Ahwaz asked 14/7, 2016 at 5:57
5
rake assets:precompile for my rails project throws below error:
rake aborted!
Current ExecJS runtime does't support ES6. Please install latest Node.js.
Below is the environment information:
...
Faggoting asked 17/7, 2018 at 10:39
1
Solved
After updating to Big Sur, my ruby (2.6.3) on rails (5.2.1) application repeatedly has LoadError when running rails s or rails db:migrate.
I have tried uninstall and reinstall rails multiple time b...
Opus asked 1/12, 2020 at 4:38
9
Solved
Turbolinks prevents normal $(document).ready() events from firing on all page visits besides the initial load, as discussed here and here. None of the solutions in the linked answers work with Rail...
Bookshelf asked 20/3, 2016 at 6:15
3
Solved
I just upgraded our Rails app from 4.2.5 to 5.0.1
The rails server boots up fine but when I try to load a page I'm now getting the error:
Sprockets::FileNotFound - couldn't find file 'jquery-ui/a...
Monsour asked 9/1, 2017 at 23:28
5
Solved
I am currently upgrading a Ruby on Rails app from 4.2 to 5.0 and am running into a roadblock concerning fields that store data as a serialized hash. For instance, I have
class Club
serialize :so...
Olivette asked 13/2, 2018 at 18:58
1
I have a User model with devise and have a active column which indicates if the user is active or not. After the trial period is over the account will be inactive unless the user sign up for one of...
Plataea asked 6/11, 2020 at 10:46
4
Solved
I am getting issues while setup and run the docker instance on my local system with Ruby on Rail. Please see my docker configuration files:-
Dockerfile
FROM ruby:2.3.1
RUN useradd -ms /bin/bash ...
Magnify asked 11/8, 2017 at 14:6
3
I'm running Rails 5 on Ubuntu 14.04. Is there a way to rotate my logs without relying on the Linux logrotate system? I have this set up ...
myuser@myapp:~$ cat /etc/logrotate.d/myapp
/home/rails/m...
Perretta asked 31/10, 2017 at 21:16
2
Solved
I have just started a simple app with a couple of forms on Rails 5.0.0beta3.
In development, using http://localhost:3000 on Safari or Chrome to access the app, if I fill a form and submit it I alw...
Cleric asked 20/3, 2016 at 11:6
3
Solved
I installed ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-darwin16] versions using rbenv, and rails with the following version Rails 5.1.4
after creating a new app via rails new my-app
I am ge...
Congo asked 14/10, 2017 at 1:59
5
Solved
I've tried to find some solution for this, but I really couldn't find anything related with the errors that is appearing to me when I run the rails command:
rails generate model Book title:stri...
Mcmorris asked 4/1, 2017 at 12:36
4
Solved
I want to upgrade my rails 4 app to 5.0.0.beta2. Currently I divided the routes.rb file to multiple files by setting config.paths["config/routes.rb"] e.g.,
module MyApp
class Application < Rai...
Sacrarium asked 24/2, 2016 at 17:31
3
Solved
Rails 5 has introduced new form helper method form_with.
How does it differs with form_for and when is it more appropriate to use?
Footing asked 9/5, 2017 at 11:46
3
Solved
I have a Rails project that we converted from Rails 5.0 to Rails 5.1.0. When I try to precompile the assets, I get the following error message:
Yarn executable was not detected in the system.
Down...
Tussock asked 3/8, 2017 at 13:56
4
Solved
I've created a file as lib/services/my_service.rb.
# /lib/services/my_service.rb
class MyService
...
end
I want to use it in app/controllers/my_controller
class MyController < ApplicationCon...
Kulak asked 5/11, 2017 at 8:44
3
Solved
I would like to know how can I delete all data from Active Storage or even resetting Active Storage? There is any way to do that? Thank you in advance!
NOTE: I'm using Rails 5.2
Lenticel asked 4/7, 2018 at 14:24
2
Solved
I have several tables that have foreign key constraints associated with them, each referencing the other in a hierarchical fashion as outlined below.
When I try to destroy a Company that has at le...
Burger asked 12/2, 2018 at 4:41
2
Solved
I'm trying to access the instance variables inside my controllers with minitest.
For example:
microposts_controller.rb:
def destroy
p "*"*40
p @cats = 42
end
How would I test the value of @c...
Dubitable asked 4/12, 2016 at 20:36
© 2022 - 2024 — McMap. All rights reserved.