Skip to main content
Multitenancy with the Apartment gem Discussion
General • Asked by Chris Oliver
Hi, Chris video is not loading!
58
posts

How to Add Pagination with Pagy Discussion
General • Asked by Chris Oliver
I couldn't have explained it better - even being the author of Pagy. Thank you!
11
posts

How to implement e-wallet system in rails?
Rails • Asked by Paulo Avelino
I will be working on a booking system where user can pay booking with wallet credits. User can load credits via paypal payment. Is there any existing gem or project doing this? Any pointers would b...
1
post

Looking for Rails work? / Hiring Rails developers?
General • Asked by Chris Oliver
Similar to the Hacker News thread, I thought we might start up a thread for anyone looking to hire a Ruby / Rails freelancer or if you're a freelancer looking for work. *Please lead with either ...
48
posts

User Avatars with ActiveStorage Discussion
General • Asked by Chris Oliver
Hi Chris, great episode. I posted a question about ActiveStorage but I have not received any response yet. Basically what i want to do is upload images for a has_many_attached directly from a contr...
4
posts


Dynamic Nested Forms with Stimulus JS Discussion
General • Asked by Chris Oliver
Yes this is what ive been waiting for!
22
posts

Working with rails caching
Rails • Asked by Hemadou Ramzi
Rails.cache.write('name','Hello this is string' , :expires_in => 1.week) Rails.cache.read('name') i use these syntax but always it's nil => nil
1
post


Editable emails templates
Rails • Asked by Karim Tarek
Hi there 👋 I need users to be able to edit email templates, something like: `Hello {{ first_name }},` Please advice, thanks 👍
5
posts

How do I add HTTParty to ActiveJob ?
General • Asked by Arnas Klasauskas
I'm currently trying to make a GET request with ActiveJob. It looks like everything is working, but somehow the GET request isn't saving in my database. This is my TypeformJob: ``` def perfo...
2
posts

Sortable List with GoRails Guide
Ruby • Asked by Rares Roca
Hello all, I have a question, I finished with the sorting of the list with Chris's help. But now I want to be able to sort the list by only when I drag the item from a div/icon/text. Can you ...
2
posts

Deleting Comments In Nested Threads Discussion
General • Asked by Chris Oliver
How about taking an OO approach i.e. changing the type to DeletedComment, e.g. using STI? This eliminates the code smell of conditionals in a partial.
3
posts

Rails Counter Caches Discussion
General • Asked by Chris Oliver
I feel this video was cause of me in the forum haha!A+++
15
posts

How to use Javascript via Webpacker in Rails 6 Discussion
General • Asked by Chris Oliver
Alternatively to the webpacker way of require the flatpicker css in the `packs/application.js` you can do someting like: ``` /* *= require flatpicker/dist/flatpicker */ ``` In your rail...
1
post

Nested Comment Threads in Rails - Part 2 Discussion
General • Asked by Chris Oliver
There's a security vulnerability in the code which allows any authenticated user to delete anyone else's comment. While there's a check in view (`if comment.user == current_user`) for showing the d...
1
post

Nested Comment Threads in Rails - Part 1 Discussion
General • Asked by Chris Oliver
Greate episode! If I should get this episode a couple of years ago, that may should saved my life jajaja! So, this is the same logic you are using here in your post and epdisode comments?
23
posts

User Onboarding Progress Bar Discussion
General • Asked by Chris Oliver
Great episode! One thing that would improve these for me would be to include testing. Thanks
7
posts

How do I add radio buttons to devise signup form ?
General • Asked by Arnas Klasauskas
I'm currently trying to add radio buttons to the devise signup form, the problem is that I dont know how I should write the migration, should it be a boolean, an integer or a string ? The user c...
1
post

Controller loop for has_many_through associations
Rails • Asked by Siddharth Arun
I have the current models setup in my Rails app: ``` Recipe has_many :items, :through => :item_linkers has_many :item_linkers, inverse_of: :recipe ItemLinker belongs_to: recipe, invers...
1
post

Subscribe to the newsletter

Join 20,000+ 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.