jquery doesn't work in js.erb file
How do I change timezone in Ahoy analitics gem ?
I change the rails timezone config/timezone then config.time_zone = 'West Central Africa' the restart server it's done.ramzieus replied • Solved
Refactoring controllers to keep them RESTful
Thanks for sending that over 👍 That's an even cleaner solution. Ok, so now my code looks like the following: **routes.rb**: ``` namespace :books do resource :google_book, only: [:creat...Nino Rosella replied • Solved
Dynamic nested forms with Stimulus *and* has_many :through relationship
Yeah, you were manually replacing part of the functionality that's built-in to Rails there. I don't see anything in this code for deleting authors, just adding new ones so that's part of the pro...Chris Oliver replied • Solved
Install Bootstrap with Webpack with Rails 6 Beta
Hello, I was able to get Bootstrap working with this method but I've run into a problem where my changes to the css files were overridden by some .scss files. Is there a 'main' css/scss file in my...gab51299 replied • Solved
denial of service attack
I would highly recommend Cloudflare.com for DDoS protection. You'll want to set it up well before you expect to get attacked so it can protect your server IPs.Chris Oliver replied • Solved
Request for code review
Looks good to me. Maybe avoid all the comments.Tabish Iqbal replied • Solved
How do I find a records based on contents of a has_many :through join?
I think I finally figured it out. Took long enough but I figured I'd share it. ``` class Student < ApplicationRecord has_many :enrollments has_many :klasses, through: :enrollments ...Peter Marcano replied • Solved
Best way to start a rails project?
Just tryied to start with rails 6 beta 2, but i'm using Aws cloud9 and sqlite 3.8 (requiered by rails) is not installed, and havent been able yet to install / upgrade version. :/kriera replied • Solved
running new app showing error.
Thank you Oliver for you valuable comment.SMEHSAN replied • Solved
Nested Forms Tutorial: How do you display the Tasks in the Project Index and Show Views?
Ah, another typo—though you got it working, but for maintainability—a (possible) solution. `@projects_id` returns an object, while it needs an array. That line should be something like this: `@proj...eelcoj replied • Solved
encounterd some problems with devise.
i checked my tables column in console all column were present ...... and even in schema the columns are present do i have to send params by those name somewhere ....sameer replied • Solved
I would recommend accumulating the products and their assocaited quantities as objects inside a local JS array. When the end-user presses "send", you can catch that event and build/send a FormData(...pupdogg replied • Solved
How can I improve query time in SQL ? (PostgreSQL)
Any ?Boris Bresciani replied • Solved
TinyTds::Error (closed connection): when using Apache/Passenger
Hello Chris, I am only using Puma or Passenger, definitely not both at the same time. When using Puma I start the rails server (i.e rails s -e production) from the application directory and the pa...William Jones replied • Solved
Contribute to a gem
Make a pull request. That is generally the accepted means to contribute. If the maintainer finds value in the pull request, they can merge it in. If you create a pull request and the maintainer ...lucywilson replied • Solved
Routing for Admin area not working
Amazing! Thank yous very much! All working now... Initially It was only Creatint but not saving but I just removed the `method: :post`Nelson replied • Solved
How to do a incremental backup
I was using postgres database. Changed wal_level to replica, & turned on archive_mode. Then it started generating wal files, which I used to restore to point in time recovery.Nithil replied • Solved
How do I create a parent record from the child when the parent doesn't exist?
I mananged to solve this. Here's what I did for anyone that comes across this in the future. Note in the `new` action I have `@note.build_chapter` rather than `@note.chapter.build` ``` class Bo...Nino Rosella replied • Solved