RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Submit a post

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Taming Legacy Code With Characterization Tests

Developers make fun of legacy systems because we’re scared of them. We’re afraid that the tiniest change will cause the app to break in unexpected ways. We’re afraid we won’t realize it until a customer complains. One way to combat this fear is through testing. In this article, José Manuel shows us how to retrofit legacy systems with acceptance test suites so we can maintain them with less fear and more confidence.

Rails 6.1's ActiveModel Errors Revamp

As Rails developers, we are all used to the book.errors(:title) interface. This has remained relatively stable up until now, but is soon going to change. I’d like to share the new model errors changes, before Rails 6.1rc1 gets released. The article contains a list of deprecation and recommended replacements offered in the new implementation. I hope to get some feedback, and see if we need to improve the upgrade guide a bit, to make the migration process less painful. [more inside]

Loading older posts