Highzen berg

Joined

100 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How do I display several posts in related "weeks"

Hello everyone,,
I would like to structure my blog so that I can assign posts I have created with Trix and Shrine to weeks.
I want to have 12 teaserboxes on my index page which can then be clicked and if I click on week 1, for example, only the posts that are assigned to week 1 are displayed.
What's the smartest way to go? Should I make an extra week model? And can I somehow make a sort of assignment while creating the post that this post is a post for week 1? Are there any instructions or tips on how to do this? I'm totally overwhelmed with it right now. Currently all my posts are listed under /posts.

Posted in Multiple File Uploads with a nice JS interface?

Hello everyone,,
I am going with an 'Attachment' model which belongs to other models (just one for now).
https://snaptube.cam/ https://syncnet.onl/telegram-web/ 9apps
The 'Attachment' model to add other fields and funtionality down the road. Each record has one file uploaded against it.

I started with ActiveStorage but am abandoning that because AS just dumps all your files into the root of your filestore. So down the road when I have a million uploads I have a mess. Carrierwave (and other gems) let you organize your uploads into organized directories etc.

I am currently just using a nested form and ActiveStorage in my edit view. It works but is clunky. I wanted to use Dropzone (as I used a few years back) but it doesn't seem to support nested attributes.

Is there a modern and easy to use combination of gems / JS to do this based on my set-up?

Thanks,.