Skip to main content
Have Stripe public key show up
Rails Solved • Asked by Martin Curiel
Hi Chris, I went through the master class for Stripe and your DigitalOcean tutorial. Attempting to combine my knowledge. I was able to deploy the app: http://165.22.132.173/pricing As you ...
4
posts

Does anyone have tips on setting up redis and sidekiq on a Digital Ocean ubuntu 16.04 droplet?
Rails Solved • Asked by Lance Williams
I have no trouble setting up redis but for some reason I can't get sidekiq to work. I can get sidekiq and redis to work locally on a mac using brew but not on a Digital Ocean Ubuntu 16.04 server. ...
7
posts

How do I change timezone in Ahoy analitics gem ?
Rails Solved • Asked by ramzieus
I search a lot but no result
2
posts

Refactoring controllers to keep them RESTful
Rails Solved • Asked by Nino Rosella
Hi gang I have a feature where a user can query the Google Books API with an ISBN number and get the book as a response. I have this all working nicely, but I'd like to refactor my `Books` contr...
4
posts

Dynamic nested forms with Stimulus *and* has_many :through relationship
General Solved • Asked by Nino Rosella
Hi team, I've been following along with the [Dynamic Nested Forms with Stimulus JS](https://gorails.com/episodes/dynamic-nested-forms-with-stimulus-js?autoplay=1) lesson, but I've been attemptin...
4
posts

How can I improve query time in SQL ? (PostgreSQL)
Databases Solved • Asked by Boris Bresciani
Hi, I have 4 models: ``` class Match < ApplicationRecord belongs_to :tournament scope :next, -> { where('date > ?', Time.zone.now) } end ``` ``` class Tournament < Ap...
2
posts

denial of service attack
General Solved • Asked by satish
What should we do to overcome Denial of service attack?
2
posts

How do I find a records based on contents of a has_many :through join?
Rails Solved • Asked by Peter Marcano
I think I've been at this problem for too long and the obvious answer has evaded me. Say you have students, classes (klass for ruby's sake), and enrollements as the join between them. ```ruby...
9
posts

Request for code review
Rails Solved • Asked by Alexey
Hello. Can I ask for a little review of my code? I have been a php-developer for a long time. I really want to learn professional programming on rubi / ruby on rails. This is my [class](https://...
2
posts

Best way to start a rails project?
General Solved • Asked by kriera
Hi i've been coding with rails selflearning with videos books and so on, (prolly not the best way to do it) but i'm wondering if there are few best practices to follow up. For instance, when i d...
6
posts

running new app showing error.
Rails Solved • Asked by SMEHSAN
Hello, i am using rails 5.2. when ever i create a new app and run server, it is showing the following errors. ``` Puma caught this error: Error loading the 'sqlite3' Active Record adapter. Mi...
3
posts

Nested Forms Tutorial: How do you display the Tasks in the Project Index and Show Views?
Rails Solved • Asked by Ryan Kulp
I am trying to display the Tasks on the Products#index and get Type Error in Projects#index "can't cast Enumerator" How can I display attributes from tasks on the Products views? Here's m...
5
posts

how can i add username in devise.
Rails Solved • Asked by SMEHSAN
Hello, I want to add username in devise. so that user can login with username and password. I have already added devise in my app. and can login with email and password. How can i do that? ...
3
posts

How do I create a parent record from the child when the parent doesn't exist?
Rails Solved • Asked by Nino Rosella
Hi team, I've trying to model books, chapters, and notes. I have the following: ``` class Book < ApplicationRecord has_many :chapters has_many :notes end ``` ``` class Chapte...
2
posts

encounterd some problems with devise.
Ruby Solved • Asked by sameer
1.when i created a devise model , i saw encrypted_password(column) in schema.rb but in registration form i saw f.input :password ??????? 2.I am getting { PG::NotNullViolation: ERROR: null value i...
3
posts

Rails + Javascript question
Rails Solved • Asked by Ignacio Alonso
Hey guys, I have an app for generating orders containg products. I'm currently using a “cart” through table that helps me connect both orders and products. I would like to have a list of produ...
2
posts

ibm Iseries AS/400 DB2
Databases Solved • Asked by Manuel Martinez
I'm trying to connect using some of the gems:sequel, dbi, ibm_db, jdbc-as400-adapterWithout success, does anyone have the same problem?
6
posts

Stripe Subscriptions: Duplicate Customers
Rails Solved • Asked by Nick McNeany
Hey Eeveryone, I'm creating a subscription site using Stripe v3. For the most part everything is working fine, but I noticed in my Stripe Customer dashboard there are duplicate customers (for al...
15
posts

TinyTds::Error (closed connection): when using Apache/Passenger
Databases Solved • Asked by William Jones
When I start my application using Puma on port 3000 everything works as expected (no error). When I try to access the application after starting Apache, using the default port 80, I get the error "...
5
posts

application.html.erb Help
General Solved • Asked by Rob Thomas
Hello, I'm a Rails newbie and I'm following a few tuts but I'm having trouble finding the application.html.erb file? I'm using Rails 5.2.2 and Ruby 2.6.0. Thank Rob
7
posts

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.