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!

Composing Microscopic Rails Views With Cells

So much of the time, our Rails views are the first files to devolve into a complete and utter mess, with monstrous conditional logic that is easy to lose track and control of. The cells gem gives us an easy solution to this problem by allowing us to create a Ruby object that has a single responsibility: rendering a template. This blog post explores the cells view models, and the different ways we can implement them in our Rails applications.

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