365体育足球滚球比分

Questions tagged [ruby-on-rails]

365体育足球滚球比分 Ruby on Rails is an open source full-stack web application framework written in Ruby. It follows the popular MVC framework model and is known for its "convention over configuration" approach to application development.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Rails: make authentication to swagger API via devise or other

My goal is log in to Swagger API to get access to endpoints. With auth token in future. I tryed to put Devise line in ApplicationController: before_action :authenticate_user! But when load http://...
0
votes
0answers
10 views

Handle large amount of shards in elasticsearch

Every shop has its own set of inventory which is stored in elasticsearch as one index. Currently, I have 11 thousand shops that mean it has 11 thousand shards with indices which are difficult to ...
-1
votes
0answers
7 views

Rails Activerecord queries taking a lot of time

We have been experiencing a lot of slow query execution lately. In an example scenario: We are using postgres database and we have a table with 1 crore data, to fetch some results from the table it ...
0
votes
2answers
12 views

conexion via ssh with ubuntu 18

I connect via ssh to an OVH hosting, I manage to connect but the problem is that I cannot execute any ubuntu command when I try to install ruby ​​and rails on my server. I am new to ssh ... formasm@...
0
votes
1answer
13 views

undefined method `payment_milestones' for #<Project:0x00007fcdbfebe210>

project has one to many association with financial financial has one to many association with payment_milestone now when i try to render ```payment_milestones in project#show, along with there ...
1
vote
0answers
18 views

Rails where on unusual subquery

I already know how to use Rails to create subquery within a where condition, like so: Order.where(item_id: Item.select(:id).where(user_id: 10)) However, my case is a little bit more tricky as you'll ...
1
vote
0answers
9 views

Active Storage => delegated to the attachment, but the attachment is nil (but attachment exist and is call in the right way I think)

I have a problem with active_storage that I cannot solve, maybe some of you have experienced these kinds of problems and could help me : I have two different Devise => Users (= pros) and Parents (= ...
0
votes
0answers
5 views

How to break down decent-exposure code to classic Rails way?

Can anyone break this code down for me and explain how this can be done in classic Rails way with callbacks(if any) and methods? class SearchController < ApplicationController expose :...
0
votes
0answers
6 views

How to generate sorbet.rbi files for new added Models in Ruby?

I've created a new model Attachment.rb and run srb tc But sorbet is throwing error because the Method doesn't exist for the Attachment model http://srb.help/7003 I tried running srb rbi update ...
0
votes
0answers
13 views

How to reduce form submitting time in rails 5

Description In our rails 5 project I am using jQuery form validation to validate form field and it is working fine but it take long time(10sec) to load and submitting form after click on submit ...
0
votes
0answers
10 views

Stripe Connect redirect uri issue for multitenant application

I am following the steps in Stripe connect oaunth. Everything worked fine till there was issue on redirecting after the auth as my application is Multitenant(with multiple subdomains). We can pass a ...
0
votes
0answers
13 views

Letter Spacing and line height of Data labels in Chart JS

I am working with chart.js to show some bar charts in reports. I was able to successfully integrate it in to my rails application and the bar charts are working fine. For displaying data labels, I ...
-1
votes
0answers
7 views

Rails 5.2 heroku Jwt Knock issue

After setup knock and check it on development everything went well, so i pushed the repo to heroku and for login the knock generate the token and login fine, but when go a authorized section like ...
3
votes
1answer
26 views

Rails is routing to Page not found instead of 404 error

I recently created an errors_controller.rb file which basically will route all non-existing page even those unathorized page by non-admin users to a 404 page: class ErrorsController < ...
0
votes
1answer
22 views

Using Ruby on rails can you have multiple user types using sessions and authentication (gem bcrypt)?

Sorry if the question is worded strangely, but this is the scenario I am dealing with here: I am attempting to make a basic web app using rails for an assigned project and chose to create an online ...

15 30 50 per page
1
2 3 4 5
21183