@mmagonewild
To his defense, it wasn't just him. Sean fools most with his style and behavior, but in reality he has great eyes for fighting. The way he saw most of the leg kicks in advance was pretty amazing. He was reading Izzy very well.
@KanekoaTheGreat
He says "Russia's illegal war"
Does that mean there is a legal war? I wonder how that works? Is that maybe when Canada and his allies go and attack Afghanistan, Iraq, etc, that's legal, but if someone else attacks someone, that's illegal?
Sounds like double standards. How about
Rails 8 will have a new, built-in rate limiter. It is built on top of the Kredis limiter type, so you need a redis or valkey database. You can just call the `rate_limit` method in your controller and set the `to`, `within` and you have rate limiting in the controller.
Did you know that you can create a single-file Rails application?
You shouldn't unless you are experimenting with something, but here is how it can be done:
🧵 👇
Active Record introduced transaction callbacks recently.
This change allows you to have a callback for the whole transaction, rather than to just have callbacks on a record's after_commit event. To make this possible, ActiveRecord::Base.transaction yields a transaction object
@yongfook
You should speak the truth and mention that your SaaS is a AI driven(GPT-5), NFT-backed, running on the newest blockchain which is operated on green energy.
Also, I am sure you wake up at six, hit the gym and take shrooms while intermittent fasting so your business decisions are
@theapplehub
Abso-fucking-lutely. Don't fall for Apple's claims of it being difficult to make this happen.
@FrameworkPuter
proved that you can build a slick, great laptop that is repairable.
There was a PHP developer guy who wrote me on an online forum about 6 years ago, telling me he feels like his career is kinda stuck and he wants to learn Ruby and Rails and looking for someone he can ask questions from. I ended up helping him(he didn't need much help) and after a
@zebulaun
@MrBeast
@CryptoFiend45
Big and strong are not the same. Strength is based on 2 things: how much muscle you have and how much of that muscle your nervous system can activate. You can build a lot of muscle by hypertrophy, but you won't necessarily be able to activate most of it. Training for strength and
I finally wrote the article about deploying a Rails app with MRSK:
I cover how to deploy a Rails app on a VM, and how to run Redis and a Sidekiq worker on the same host.
@dvassallo
I think it is a different kind of problem.
With the spambots, it is a whack a mole game. You add some protection and it works until they figure out how to circumvent, then rinse and repeat.
@Austen
Honestly, would you hire her? Based on this video, even if she had the experience, I am sure other folks would be more fun to work with than her.
The post I wrote about Kamal(aka MRSK) got a little dated, but I updated it today. There is no Caddy involved now, thanks to
@z0maj
, I learned that Traefik can handle SSL certificates too.
Rails devs, do you ever write any security tests? I mean test cases for authorization for instance like these:
"User A can't access User B's account"
"User A can't create records in User B's account"
etc
I have 3 small changes you can do to your Rails app and significantly improve its security posture:
Setup spektr or brakeman for static code analysis. Run this on your CI to prevent silly mistakes getting into production.
Setup "bundle audit" and "yarn audit" or "importmap audit"
Rails 8 will have a new, built-in rate limiter. It is built on top of the Kredis limiter type, so you need a redis or valkey database. You can just call the `rate_limit` method in your controller and set the `to`, `within` and you have rate limiting in the controller.
During
@tenderlove
's talk we learned that there were about 5 Vim users at
#RailsWorld
including me.
It might be worth sharing how I ended up using Vim in the last couple of years.
It started when I opened it to give it a try, and I just can't exit since.
Kamal is amazing and version 2 might give the option to deploy multiple apps on the same host. That will make it even more compelling to indie hackers.
Kamal is an imperative deployment tool from
@37signals
for running your apps with
@Docker
. Donal McBreen, from the Security, Infrastructure and Performance team at 37signals will run through how it works, what they've learned from v1.0 and the changes they've made for v2.0 - all
I don't have a sportscar to show off, but still, thanks
@rails
for the hair I still have at 40, for the opportunity to have fun building web apps in the past decade and earn a decent living while doing so.
The only thing more thankless in open source than bug fixes is working on security vulnerabilities. Y'all have no idea the amount of time some of us on Rails Core spend on security.
We will have great keynotes at Rails World!
Don't forget that tickets will go on sale April 30 at 1pm EDT.
Hopefully I will see many of you in Toronto!
I just noticed that
@rosapolis
will talk about "Invalid bytesequence in UTF-8" at
@friendlyrb
. I am surely not the only one having PTSD from that error message.
I would like to thank all the sponsors,
@AmandaBPerino
, the Rails Foundation and all the participants for Rails World. It was a great experience and I can’t wait the next one.
Password-based authentication is still the most widespread on the internet, so here are a few recommendations to keep in mind for it:
- Require users to create a strong password. I would recommend a length of 12-64 characters.
- Allow any character types your database field can
Rails 7.1 will introduce 'regroup' to Active Record and folks seem to be confused about it.
It will not regroup on the already grouped result, it is just syntax sugar to replace the previous 'group' call:
Rails 7.1 will come with a default of using all processor cores available in production:
You can still override this if needed by setting the WEB_CONCURRENCY environmental variable per host, or change the config in puma.rb globally.
We reached the final issue in 20222 of This Week in Rails!
I'd like to thank to my fellow editors:
@siaw23
,
@four54
,
@morgoth85
and
@_zzak
and to all contributors to Rails!
@etagwerker
@dhh
I know it is cool to shit on DHH without even reading the article, so probably you missed this part. Do you think that it is wrong to "give everyone a fair chance to advance in the world on the merit of their talent and content of their character"?
I think we can all agree now it is a loud minority who is interested in the DHH drama. Maybe it is time to move on and spend time on more important things.
And it isn't because they left for mastodon, they are all on Twitter as well, some in a stealthier mode, some openly.
Since there isn't enough drama on Twitter and in the Ruby world, let's add some oil to the fire :D
Rspec or Minitest? And don't forget your reason to prefer one over the other.
#RailsWorld
is now sold out. We can't wait to welcome you to Toronto! If there are any unclaimed or returned tickets from sponsors, we will release a second, smaller batch later in the year.
@GergelyOrosz
I second this. I live in Spain and many sites forces me to use a spanish version, even though they have an english one.
And I know this must be news to them, but believe or not, there are people living on countries without speaking the local language :).
ActiveRecord::Base
#pluck
will accept hash values in Rails 8.
Currently, if you want to pluck from a table of an association, you would need to specify the column name as a string:
Post.joins(:comments).pluck("", "", "comments.body")
An interesting new feature is coming in the next release of Rails: assertionless test reporting.
You might wonder what an "assertionless test" is and why would someone even write one.
These tests can pop up by accident. Consider the following code snippet:
If the active scope
@_swanson
@t3dotgg
Wow, you managed to watch that video???
I gave up after a few minutes. The way he talks and twitches hurt my eyes. And as you pointed out he doesn't seem to know what he is talking about with the cloud exit(at least in the part I managed to see).
Did you know that when you are working on and old Rails app, and migrations are not versioned, you can run "rails db:schema:load" to load the schema instead of migrations?
As a sidenote, I am starting a newsletter to share similar things in more detail: