Skip to main content
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

Routing for Admin area not working
Rails Solved • Asked by Nelson
I've got an application that makes use of an admin area for managing Articles on the frontend. Its a simple CRUD app where pretty much everything Admin related is namespaced and inside admin folde...
4
posts

Separate Asset Pipeline
Rails Solved • Asked by Nelson
Im building a webapp that has an admin panel... I separated this by creating a new folder in the controllers 'admin' and also on my views... This way I can have two completely different styles, one...
2
posts

Manipulate photos already on S3 or Spaces
Rails Solved • Asked by Ryan Carter
Scenerio: User uploads a huge file to S3 or Spaces. Question: How can I set up a job or worker to go into S3 or Spaces and resize that file at a later time, or even batch all of the days uploade...
3
posts

Should Categories be it's own resource or model attribute?
Databases Solved • Asked by Ariff Munshi
Hey guys, I have a question on database design. Say I have a Post model that has/belongs to a category (out of about 20 categories or so). I am thinking of two options that have their own merits.1....
5
posts

Subscribe to the newsletter

Join 24,647+ 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.