How to decrease coupling in your controllers & views with decent_exposure for better maintainability

Posted on

If you're a Rails developer, you're familiar with with the standard way of sharing data from the controller layer to the view layer. By convention, Rails copies all instance variables defined in the execution of a controller action to the view context. This standard usage will result in strong coupling between your controllers and views, as they are sharing state via instance variables. To solve this problem, Stephen Caudill created the decent_exposure gem ...

Read More