Database connect
Hello and a wonderful day at all. I'm a new RVM, Ruby and Rails user and I have a problem. My problem is: I can't connect my App to a database. My System: - OS: Rocky Linux on a Hypervisor VM - ...
RubySnug postedHello and a wonderful day at all. I'm a new RVM, Ruby and Rails user and I have a problem. My problem is: I can't connect my App to a database. My System: - OS: Rocky Linux on a Hypervisor VM - ...
RubySnug postedWhat an episode! That was one of the best explanations of ISP that I've seen. The ruby specific examples were Gold
Arthur Ariza repliedWhat is the best approach to deal with csv headers that don't match 1:1 to the model's columns? I used Structs to build a hash, but I'm thinking on refactoring to ActiveModel::Model. Any suggesti...
Arthur Ariza repliedHi, How can I restrict access to the devise sign_up route to logged in users only? Controller: ```ruby # frozen_string_literal: true class Users::RegistrationsController < Devise::Registrati...
Christian Herber Santos postedHello, Yes, I checked the database and saw that my error was when I generated the model, putting the city_id:references field instead of just city:references. Thanks
Christian Herber Santos repliedWay to help us supercharge our troubleshooting skills. :D Great episode!
Ann Cascarano replied+1
Michael Prince repliedWow, awesome.
fridnorell1 repliedThis is handy especially for things like notifications where you need to queue up many separate jobs at once.
Chris Oliver postedDifficult choice indeed. Ready to discuss this in public? What parts do you consider in the decision?
robert repliedThank you Chris for the great series! I am running into a error though on this tutorial when trying to create a post and have it show on the conversations page. ActionController::UnknownFormat (Act...
Damon Clark postedAwesome Chris! Great breakdown of the MVC pattern! : )
Eric Halverson repliedI need to query a collection of entries based on a range of dates and then sum an attribute of the sub-entry using the delegated_type method. Something like this: ``` Entry.where(performed_at: Da...
William Cunningham postedIf instead of passing in the model as a lone variable, you could pass in an array like `[:admin, @article]`, and within the partial where you render the link, you could simply pass all of that in l...
Stackup repliedI have replace the webpacker with esbuild in my rails 7 project, js files are compiling but not working, and not getting any error.
Almas Asghar repliedhi guys i am trying to build a blog platform like hashnode/substack where user register on root domain and create blog. I am currently using devise and i have set up subdomain routing. My question ...
Henry posted