RubyFlow The Ruby and Rails community linklog

What code goes in the lib/ directory?

A common question teams run into while building a Rails app is “What code should go in the lib/ directory?”. In this post I describe a common antipattern for Rails code organization and a principle for determining what classes should go where.

Comments

Thanks for writing this Bryan. It received a healthy discussion on the Mendicant University community channels, and in the end, everyone pretty much agreed with what you had to say here :)

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

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