With this command you can run all the spec files which have been edited or added in the current branch...
testing-library are widely used testing utilities libraries for javascript dependent frontend testing. The main utilities provided are query methods...
It's possible to implement simple custom RuboCop cops with very little code. They work exactly the same like existing...
I recently stumbled over a quirk in the way Ruby handles local variables that I find somewhat dangerous. Consider:
I was recently asked to optimize the response time of a notoriously slow JSON API endpoint that was backed by...
While most Rails Apps are tied to at least one external REST API, machine-to-machine communication via GraphQL is...
When Rails releases a new version of their gems, they also release a number of npm packages like @rails/activestorage or...
Modern JavaScript includes Intl.NumberFormat to format numbers in different formats and locales. In this card, we describe a wrapper for...
This cards describes an example with a Github Client on how to keep your Rails application more maintainable by extracting...
ActiveModel classes have a class method .human_attribute_name. This returns a human-readable form of the attribute: Person.human_attribute...
In Rails 7.1 it has become possible to annotate partials with the locals they expect: # partial _user_name.erb <%# locals: (user:) %>
After an upgrade to rails 7 I noticed that async reindexing jobs of Searchkick were failing for Model.reindex(mode: :async...
If you are using the routing-filter gem in your Rails 7.1 app for managing URL segments for locales or...
tl;dr Do not use the option optional on association declarations with a symbol, lambda or proc. Explanation Association declarations...
As we're switching from PT to Linear, I've updated the existing bash script to work for commits that...
shoelace is a library of web components. Here is a proof of concept how a integration (slightly different as the...
Raising errors for required and permitted attributes makes it easier to find errors in your application during development and in...
Your commit messages should include the ID of the issue your code belongs to. Our preferred syntax prefixes the issue...
We are using assignable_values for managing enum values in Rails. Nevertheless Rails is adding more support for enum attributes...
When making requests using the http gem you might want to automatically follow redirects to get the desired response. This...
Debugging performance issues in your Rails app can be a tough challenge. To get more detailed insights consider using the...
There are two ways a logout in SAML can happen: Service Provider (SP) initiated and Identity Provider (IDP) initiated logout...
Starting with Rails 7.1 the production logger is set to standard out. For applications running with opscomplete ensure to keep...
If you are using git submodules in Gitlab CI, you might run into a "The project you were looking for...