All Case Studies Design Development Interviews Our Way Project Management

How To Use Decent Exposure Gem In Your App

In Rails, the default way of passing objects into views is to set instance variables in controllers. This is often confusing and breaks encapsulation (instance variables are meant to be private for the object). In addition, many such variables are set in the common ways, increasing boilerplate code (e.g. find record by id, find collection scoped to current user). Decent_exposure is a small utility gem to improve exposing objects in controllers to views.  
Read more
Need a successful project?
Estimate project or contact us