How do I structure a Conversation between two models?
I didn't realize I could access `conversation.recipient` and `conversation.sender` so easily, going to try to model it as you suggested above Casey :thumbs_up:Taylor Cooney replied • Solved
Rails Webpack caching
Found the issue! It was due to my environment file in webpacker causing the assets to not be recompiled.Stephen Sizer replied • Solved
How to fix params require for form_for contact in multi controller view
in ProductsControler Change ``` show @contact = :set_contact end ``` to ``` show @contact = set_contact end ``` juste delete :Anthony BESSON replied • Solved
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
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