Gathukumose Profile Banner
Moses Gathuku Profile
Moses Gathuku

@Gathukumose

Followers
869
Following
3K
Media
89
Statuses
672

Rails product developer. Independent consultant. Building: https://t.co/k6K9onexg3 DM is open.

Thika, Kenya
Joined December 2016
Don't wanna be here? Send us removal request.
@Gathukumose
Moses Gathuku
12 days
Rails engines keep their routes separate from the main application. When defining a Mission Control base controller, you must use the main_app route proxy to access main app routes; otherwise, you’ll run into routing errors. https://t.co/Mb6ltYkrDs
0
0
6
@Gathukumose
Moses Gathuku
12 days
100% coverage on this project including branch coverage.
1
0
7
@Gathukumose
Moses Gathuku
21 days
New project ideas always arrive before the old ones are finished
1
0
7
@Gathukumose
Moses Gathuku
2 months
Rails uses int8 for primary keys. That’s a max value of 9,223,372,036,854,775,807. Even if you inserted 1 million records per second, nonstop, it would still take you 292,000 years to run out. You’re not hitting that limit. Ever.
1
3
36
@Gathukumose
Moses Gathuku
2 months
I still believe macOS is still the best OS for devs. You can install PostgreSQL and set up a Rails DB that connects seamlessly—no user/password issues. Try that on Linux and you'll spend the day troubleshooting. I’ve had enough problems with Linux to know I’m not going back.
5
0
3
@Gathukumose
Moses Gathuku
2 months
Attending @ruby_african RubyConfAfrica @DaystarUni today and tomorrow. Exited to meet you all ruby friends. #RubyConfAfrica #rubyfriends
0
4
16
@Gathukumose
Moses Gathuku
3 months
Being able to access session new page when already signed in doesn't make sense, maybe rails auth generator should handle it. 🤔
1
0
8
@Gathukumose
Moses Gathuku
4 months
Disable video auto play and never open a video on timeline.
0
0
0
@ryanstrickler
Ryan
4 months
@kentexcargo I had a laptop delivered to you last week to be sent overseas and it has gone missing. No one is responding to my calls or emails. Not a good look for a professional shipping company. Please DM me ASAP.
1
1
1
@Gathukumose
Moses Gathuku
4 months
How can I reduce video content on my timeline
3
0
1
@Gathukumose
Moses Gathuku
5 months
Wasted a lot of time trying to convert a PDF to an image with online tools. Turns out it was easy to vibe-code a Ruby script that does it.
1
3
15
@juliknl
Julik Tarkhanov
5 months
@GregMolnar Good points but with HTTPS it is encrypted, most clients conceal it when displaying headers. A lot of clients have built-in facilities for the Authorization header. There is no rate-limit on session-based logins either - you can add it for HTTP basic too. CSRF is a point but even
1
2
18
@Gathukumose
Moses Gathuku
5 months
"open" Account class to add a method that stubs(mocha gem) authenticate! for the tests.
@Gathukumose
Moses Gathuku
5 months
Rails authentication in 1 minute.
0
0
0
@Gathukumose
Moses Gathuku
5 months
Rails authentication in 1 minute.
2
1
38
@Gathukumose
Moses Gathuku
6 months
Rails ActiveRecord find returns an object with id 31 in this example. Person.find("31-sarah") In https://t.co/jRKa5dfY0N, I override to_param method to provide SEO friendly URLs that still works with the find method. Example: https://t.co/jSx6nzQoGf
1
0
2
@Gathukumose
Moses Gathuku
7 months
Went to lake Ellis on the weekend.
0
0
3
@Gathukumose
Moses Gathuku
8 months
For demo purposes and to prevent a lot of requests to the server, I have modified the controller to reload only 10 times / 10 seconds.
0
0
1
@Gathukumose
Moses Gathuku
8 months
In Turbo, the FrameElement.reload() function reloads the frame element from its src. This example adds a simple stimulus controller that reload the frame at specified intervals.
1
0
1
@Gathukumose
Moses Gathuku
8 months
Added a new example "Turbo frame - reload" ( https://t.co/Fi0wbaXrRt), to HotwiredCases.
1
8
68
@Gathukumose
Moses Gathuku
9 months
Anyone from Thika? Let's connect
0
0
3