TIL! Never thought to put a fake route in the url to get the full routes list, genius!
@SupeRails8 ай бұрын
these days more often I type "rails routes -g hello" in the console, and it gives me all the routes that contain "hello". check this out: www.bigbinary.com/blog/rails-5-options-for-rake-routes
@InLightFilm Жыл бұрын
Thank you. I learned a lot form this video .
@Spirit-Templar Жыл бұрын
Thanks ! Really Helpful
@SupeRails Жыл бұрын
Glad it helped! Check out my other videos on ActiveStorage :)
@procoder70992 жыл бұрын
Thanks my brother... Your videos are gem 💎
@Mikevets3 жыл бұрын
Hi! Would you be able to record a video teaching how to show previously uploaded (saved) attachments while in the edit screen? Also, when editing, it would be wonderful to be able to attach "additional" files, rather than having to attach all files again. For example, what if I want to replace just one file, or add just one more new file?
@SupeRails3 жыл бұрын
add this to your application.rb to not replace initially attached files by new ones: config.active_storage.replace_on_assign_to_many = false source: stackoverflow.com/a/58295158/5695646
@SupeRails3 жыл бұрын
To see already uploaded stuff just add smth like - if @post.attachments.any? - post.attachments.each do |attachment| = image_tag attachment
@AymarddeDieuleveult10 ай бұрын
Thank you so much !!!
@nilundonedetluexay19113 жыл бұрын
thanks a lot man
@SupeRails2 жыл бұрын
Hello Nilundone! You're most welcome. Have a great weekend ;)