<body class="<%= @home_page ? 'homepage' : ''%>"> <%= yield %> </body>
def index @home_page = true # existing code end