Înapoi la articole →

Cel mai recent articol

Ultima verificare

Urmăritori 0 urmăritori
Articole: 15
  1. When you’re building views in Rails, you often need to apply CSS classes conditionally.

  2. When you need to build HTML outside of a template, it’s tempting to concatenate strings and call html_safe on the result.

  3. To deal with secrets and credential handling most Rails apps have ended up with a hotchpotch of ENV.fetch calls and credentials.dig lookups throughout the codebase, depending on where each secret lives.

  4. English has plenty of irregular plurals.

  5. Some English words don’t have a separate plural form.

  6. A lot of Rails’s naming magic comes from its clever use of inflections. user.rb defines the User class, backed by the users table, managed by UsersController, accessible at the /users/ routes.

  7. When multiple validations share the same if: condition, or multiple callbacks share the same only: constraint, you end up repeating yourself. with_options groups them together.

  8. Rails models default to using their ID in URLs: /articles/42.

  9. You’ve probably seen Rails.env.production?

  10. When checking if a value exists within a collection, Ruby’s include?

  11. Tailwind CSS 4 changed how configuration works.

  12. Ruby 4.0 landed during Christmas 2025 with a bunch of new features.

  13. Year in Review 2025

    House moves, robot armies, and scratching itches.

  14. Rails World 2025

    Off I went to Amsterdam via—so incredibly civilized—Eurostar from St Pancras wearing my favourite Made the Scene t-shirt.

  15. Rails 8.0 added except_on as an option to validations.