Pretty cool library to make JS annotation in your app
https://roughnotation.com/
=> More informations about this toot | View the thread
Here's the PR: https://github.com/rails/rails/pull/51674
=> More informations about this toot | View the thread
Rails recently merged a new API to deal with params. Instead of the common pattern params.require(:user).permit(:name, :age)
now we should write params.expect(user: [:name, :age])
.
This is not only shorter but also better deals with param tampering. For example, the following /path?user=string
would break with require+permit
but not with expect
.
[#]ruby
=> More informations about this toot | View the thread
TIL about https://github.com/rubymem/bundler-leak
[#]ruby
=> More informations about this toot | View the thread
If you haven't tried, check https://picocss.com/. It is handy to make that boring Rails scaffold prettier instantly!
=> More informations about this toot | View the thread
Now that X is blocked in Brazil, I'm even more grateful for the Short Ruby Newsletter!
https://newsletter.shortruby.com/
=> More informations about this toot | View the thread
=> This profile with reblog | Go to matheusrich@mastodon.social account This content has been proxied by September (3851b).Proxy Information
text/gemini