Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for plain_toast‭

Type On... Excerpt Status Date
Edit Post #296505 Initial revision about 1 month ago
Answer A: Rails 6.1, trouble with session management, sessions behave weirdly
All right, I've found out what was wrong. I was storing too many things in the session. I stored user IDs, admin IDs, participant IDs and some other things too. Now if the user used several tabs it was possible that old session contents overwrote new session content owing to the fact that browser...
(more)
about 1 month ago
Edit Post #296159 Initial revision 4 months ago
Answer A: Rails 6.1, unbelievable assets-precompile time for a smallish project
There are several things to check: Unused images, Javascript or CSS styles. Importing large libraries like Bootstrap several times can slow things down very much. In my case it was a SCSS structure that had grown over nearly ten years and caused the Bootstrap styles to be imported over ten tim...
(more)
4 months ago
Comment Post #296158 All right, I asked Claude. I admit it. And it turned out there's no limit to the problems you can cause if you import your scss files without thinking. Essentially Claude (powered by Opus 4.5) found out that I had mismanaged my scss imports to such an extent that the Bootstrap styles got compiled...
(more)
4 months ago
Comment Post #295532 Sorry, haven't been around for a while. I meanwhile implemented a parallel session management using the database, that's how frustrated I was. No, I don't call `protect_from_forgery` on the application controller. I removed that line as I understood it's now included by default in ActionControlle...
(more)
4 months ago
Edit Post #296158 Initial revision 4 months ago
Question Rails 6.1, unbelievable assets-precompile time for a smallish project
I have an old Ruby on Rails project currently running on Rails 6.1. It isn't very large. I have got the old asset pipeline, 2.7 MB of Javascript in a nodemodules folder and 3.7 MB of files in the asset folder. When I build my Docker image, precompiling assets takes nearly two hours. Yes, two h...
(more)
4 months ago
Comment Post #295532 Yes, there is. That filter chain statement says "redirected to login screen". The redirect happens because the session ist empty in spite of its having been written to before. And I have been logging the session too. It's written to correctly; the puts statement outputs the session in exactly the...
(more)
6 months ago
Comment Post #295532 One more bit of information. I **don't** use Devise. It was there in my project all the time but I never used it. I've since uninstalled it. The error persists. Sigh.
(more)
7 months ago
Comment Post #295532 I have a response to my question about string keys. Since I use the default session store (cookie_store), my session gets serialized as JSON. It seems it does not get restored to the original form when the call returns from the frontend. So that's all right. I've got some other feedback saying th...
(more)
7 months ago
Edit Post #295532 Initial revision 7 months ago
Question Rails 6.1, trouble with session management, sessions behave weirdly
I am at a complete dead end with Rails sessions. I have an old Rails project. It started with Rails 3 or 4, and it is now running on Rails 6.1.7.10, the code has been updated carefully. I use sessions to keep track of logged-in users (just the user ID and the expiry). The sessions have always ...
(more)
7 months ago
Edit Post #295092 Post edited:
10 months ago
Edit Post #295092 Initial revision 10 months ago
Question Creating PDF from HTML on Debian Bookworm; tools?
I am on a Debian Bookworm Docker image. My Rails6 project needs to convert HTML files to PDF. I used to do this with wkhtmltopdf, but wkhtmltopdf has not been supported for a long time now, and I want to update. I have tried using headless Chrome, but this is not a solution since it (a) contains...
(more)
10 months ago