Why is this image_tag not working?
If I try and put this code: ``` ``` into one of my notification layout pages I only get: ``` Can't resolve image into URL: undefined method `to_model' for # Did you me...Christopher Guller posted • Solved
Navbar with Vue.js and webpacker - Flickering at page load 😒
Status update: **[SOLVED]** --- Thanks to a live code of Adam Wathan himself, I found out that `[v-cloak]` was the solution I was looking for. Here is the solution: 👉 https://www.youtube.com/watc...Thomas Sohet replied • Solved
Create little (parse data, formatting and counting) project
I would be very grateful to those who will spend their time prompting where to start, how to act, what gems to use, what sequence of actions to choose, if you know - a ready-made example of this or...shamsmehra90 replied • Solved
I ended up also disabling wrap_parameters: wrap_parameters format:  So now I can simply do params.permit(:id, :name, :age). Not sure if there is a better way.Penguin replied • Solved
Nested Parameters returns ActionController::Parameters rather than parameter value
Yep, that's the built-in way. Sounds like your code doing the validation is strict about what type of object it is (a Hash) and that's the part that's not very Ruby-ish.Chris Oliver replied • Solved
Webpacker doesn't make require available in the browser window, so you have to set that explicitly. ```js window.toastr = require('toastr') ``` Working example here for you: https://github.com/ex...Chris Oliver replied • Solved
URL Based multi tenancy
It's pretty simple and the only things that would affect it are possibly major Rails versions, so there aren't many changes to be made to it.Chris Oliver replied • Solved
Is there a torrent or similar to download all episodes?
Chris indeed!Marc Köhlbrugge replied • Solved
Stimulus Reflex Lifecycle events
solved by adding `data-id`Joseph A. replied • Solved
How do I create a delete button for images uploaded with Active Storage
Is it working properly? ``` @space_image = ActiveStorage::Blob.find_signed(params[:id]) @space_image.purge_later ``` I've found this way doesn't work correctly — the image still connected (.attach...Dmitriy replied • Solved
How do I show a query result in browser in excel/sheet style?
In our application we generate several reports. Instead of downloading them as Excel or CSV want to render them similar to Excel/Google sheet anyone any ideas what the best approach is?Peter vande Put posted • Solved
Question about twitter clone
Hey Rick, Absolutely. If you can imagine it, you can build it. For following hashtags, you'd want to create a model for the Hashtag and then very similar to following users, you'd create a model t...Chris Oliver replied • Solved
Gem for making user groups
Typically I just create a model called Group and a model called GroupUser that keeps track of which user is in which groups. No gems for it that I know of since everyone tends to implement it dif...Chris Oliver replied • Solved
How do I create an input field for a polymorphic association?
One trick I like is using signed GlobalIDs. This way you can reference any model. Your form could list all the guests and employees and submit their SGID over to the booking to be transformed to th...Chris Oliver replied • Solved
Tailwind Checked Radio Buttons = Change Background
Ok, just solved my own problem. For anyone else wanting to turn radio buttons into actual buttons using CSS there's a 'focus-within' class used to target child elements. I'll probably move away fro...Tim Dowling replied • Solved
CRUD on attribute in N/N join table
`has_and_belongs_to_many` does not allow you to access the join table, and therefore it's very rarely used. Instead, you just want to define a `has_many :through` association. ```ruby class User ...Chris Oliver replied • Solved
Best Practices for storing API Keys, DB user / passwords, etc...
Hey Craig! Check out this episode on Rails credentials. This is what I strongly recommend as all your credentials are easily organized and encrypted. Then in production you only have to set RAIL...Chris Oliver replied • Solved
Active storage has_many_attach replaces older images instead of appending them in Rails 6
thank you!Marcus S replied • Solved