eager loading with custom joins
problem statement: Can I write a custom join for the included association? e.g. Course.includes(:course_details).joins(left outer join course_details on course_details.......) I want to add more ...
Daud Sadiq postedproblem statement: Can I write a custom join for the included association? e.g. Course.includes(:course_details).joins(left outer join course_details on course_details.......) I want to add more ...
Daud Sadiq postedHi Kyle, could you send a link for this tutorial, pls ?
Bri replied • SolvedIm running my project first on my local machine using Production environment before deploying to production to make sure all is running fine. im using docker with Rails version 5.2 and webpacker ve...
Dev postedHi I use a very old ROR (2.0.2) and ruby 1.8.6. I would like a fine database management. What is the ROR recommended version for you? Of course the last, but if possible, i don't want to make a big...
jean postedI'm having an issue with sharing a the `new` and `edit` form for a shallow nested resource in a module/namespace. Most everything works as expected. The issue I'm running into is using `form_with`...
Chris Born postedI still have the same problem. not sure what I need to do
RyanJeff repliedhi roberto, i don't know to achieve this, but I am curious if you figured out any answers. I am doing work on an older rails app and connecting to mysql using the mysql2 gem has been a challenge f...
KevinNafziger repliedI have an app where I got the CRUD functionality working and I added some AJAX to learn how to use it. I changed a class to use AJAX for the delete, edit and show views from the index view. That ...
Drew repliedI am not able to set up rails project on my machine. It's giving me following errors when I try to run bundle install P.S: This is my very first time on ruby error: mingw32: key "5F944B027F7FE20919...
Mustafa Rasheed postedCan you please help to solve this timeout error? Timeout Error is an exception error thrown when any block of code takes too long to execute, so it terminates its execution by throwing the same er...
Allen Arlene postedI don't believe you'll be able to use .js.erb responses in Turbo going forward. They're pretty much replaced by TurboStreams. 👍
Chris Oliver repliedHi, hope you are fine. I am having a task in which BasketMenu has many BasketMenuItems, and there is another relation of OrderMenu has many OrderMenuItem, and BasketMenu has many OrderMenu. My task...
Haider Ali postedHi, I've been upgrading a legacy app to leverage Webpacker and Stimulus with the intention of moving to Hotwire eventually too. We have a few ActionCable (AC) channels used here and there and it se...
Craig Chamberlain postedThis would help you create new Rails apps with different versions. Bundler already handles separate Rails versions for each app, so that's already handled for you. It installs whatever is in the Ge...
Chris Oliver replied • SolvedI am using Rails 6 API with the Devise gem and Devise_JWT gem. It is early stages but currently Devise is not submitting default params to the registration controller such as email. I am receiving ...
georginavweston postedHow do we organize the model folder according to the example on the first episode of solid design ? Should we make another folder app/scripts or whatever ? How these new classes are imported into m...
Jules JAMET postedI call the api for some lifestyle nutrition objects using the bellow and it returns 700 objects. Its currently taking 25-30secs. The lifestyle items do not have any attachments so don't understand ...
Stephen Sizer postedGood Day , I have an error while upload csv file into my webpage Error NoMethodError in ImagesController#import undefined method `import' for Image:Class Iam fresher into the ruby on rails plz help...
Vikram posted