Skip to content

Instantly share code, notes, and snippets.

Avatar

Preethi Krishnamoorthy Ramesh Kumar PritiKumr

View GitHub Profile
View controller.rb
class Controller
include LazyLoad
def show
@model = Model.find(...)
respond_to do |format|
format.html do
@html_specific_data = Model.find(...)
end