This is SO much cleaner than the hack I tried to do that looked like this... Plus I also had other logic around project count track limits... I appreciate the tutorial :)
if files.length > 0
files.each do |f|
@project.tracks.create(mp3_file: ActiveStorage::Blob.find_signed(f), file_size_limit: file_size_limit)
end
end
This is great. I especially loved the walkthrough of the tasks... The Asset Pipeline has been doing my head in ever since Webpacker - seeing how the tasks include javascript files was very helpful :) Thanks!
This is great, thank you! I have been looking into how to do this. I've found it easy to add alignment and sizing. However, is there a flag to make Trix auto remove a previously set value. For example, when I choose another color, they are both selected. I imagine it's a simple flag I'm missing? Perhaps in the Trix.config.textAttributes setup? Essentially, looking for a replace method rather than adding the value to the style attribute.