This site uses cookies to deliver our services and to show you relevant ads and job listings.
By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service.
Your use of Stack Overflow’s Products and Services, including the Stack Overflow Network, is subject to these policies and terms.

Join us in building a kind, collaborative learning community via our updated
Code of Conduct.

Questions tagged [ruby-on-rails]

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.

We have a use case for mounting a mock engine to process sessions when developing locally in which a custom session middleware calls the mock engine via Net::http request when a request comes through. ...

I'm trying to render on my product show/index page what category a specific product belongs to. I don't know if I need to create a join table or if the way that I have set up the models is good enough....

I am using client_side_validations in a Ruby on Rails application form.
I have a select field which is converted to a Jquery combobox on page load.
That means, I do not see the select box on my screen ...

I have several models which have attachments
Each of them has different Uploader
Can I save (mount) uploader to with polymorphic association and use for different model different Uploader file?
For ...

So this is my first time writing unit tests, and Im incorporating Rspec w/FactoryBot.
My Specs were working just fine with using @ instance variables, However when I use let! the second model fails ...

I'm new with activeadmin and have searched everywhere for a solution to my problem. I'm building a subscription based site and paying customers will have access to the videos. I'm using Activeadmin ...

Need Help!!!! I am new to Rails. I tried many solution but could not able to solve this issue. I used Simple form ,Cocoon and haml to handle nested form for "has_many :through" relation( Its many to ...

I started to develop the new RoR web app and faced weird issue.
I wanted to create new app with Postgresql. So I installed the Postgres with brew and MacOS desktop app. And type rails new test-app --...

I'm encountering a very weird bug in my Rails app.
I'm using ActiveStorage to store images on S3 and images sometimes appear but sometimes don't. You can see it here: https://littlered.life/
If you ...

I try to use Mina to automate the deployment process for a Ruby on Rails application. I defined an user for ssh like this in my config/deploy.rb file:
set :user, 'unix-username'
But when I call mina ...

I am consuming a Rest API and the return of one of the data is a datetime that is return in an Array. Exactly like this:
"beginDate": [2018, 7, 24, 8, 22, 0, 0]
In my rails app I want to parse this ...

So I am working on a project that uses webpacker and rails. I use react which I have installed with --webpacker=react when initializing my app. The idea is to build the whole view layer in react and ...

I believe we can get a massive performance boost in our user matching and search feature if we keep a simple in memory data structure of some nested hashes and arrays. This is not sophisticated enough ...

I was using eye gem to monitor sidekiq background process in my rails application, but I am not receiving notification mails. I know that most probably, my config syntax itself is wrong but I am not ...

I am using phusion passenger open source but facing few problems
Passenger Version: 5.1.12
Nginx Version: 1.12.2
The site which we are using have 300+ users at a time, But within 5 minutes
Requests ...

I have a user model that has one profile and also has one goal. The profile has a privacy field which is of type hstore, and in that field there can be a hash that indicates that it is OK to publicly ...