Got a question or want to chat about a topic?
Hi, I'm using newest Rails 7 and in my app I have implemented cart with turbo similar to the from Episode, I would like to add some new feature to the checkout show little input field where I can input some discount in percentage for example 20, then my total...
Posted by nikos83 13 days ago
I'm working on a project that has Cue model that could be accessed and searched by multiple roles like guest and admin. The authorization happens using CanCanCan gem based on some logic written in the Ability class. While the search happens using Pagy/MeiliSearch combination to do the full text search...
Comment by Ali Osm about 1 month ago
Currently I have this ``` = turbo_frame_tag "xxx" do = f.fields_for :documents, @onboarding.documents.build do |task| = render 'shared/document_upload', form: task ``` update.turbo_stream.haml ``` = turbo_stream.update "xxx" do = render 'shared/document_upload', form: task How can I pass the fields for form object to the update.turbo_stream, or...
Comment by David Kimura about 1 month ago
It seems that you just got bit by this Turbo PR https://github.com/hotwired/turbo/pull/863. The quick fix is to do this https://github.com/hotwired/turbo/pull/863#issuecomment-1470184953 The best, long term solution is for this PR to be merged https://github.com/hotwired/turbo-rails/pull/367
Comment by David Kimura about 2 months ago
Hi David, can you take a look at the video download functionality? The video is prepared according to notifications, but when you click to download, I get zero bytes sized videos. This means nothing was downloaded. can you help look into this?
Comment by David Kimura 2 months ago
Hey I watched your video on api-structure-and-error handling: https://www.driftingruby.com/episodes/api-structure-and-error-handling. I was curious tho of how this implementation would work with jb/jbuilder and the application controller top level error handling?
Posted by Doobie 3 months ago
Concerning the lesson for the shopping cart with turbo. I've also added user authentication and authorization. I need the admin to be able to see all orders of all customers and their state, whether in process or shipped, and the normal user to be able to access all order history....
Comment by IBUNHABIBU 4 months ago