```ruby
class HealthChecksController < ApplicationController

  def index
    @health_checks = HealthChecks.all

    respond_to do |format|
      if HealthChecks.ok?
        format.html  { render :action => :index, :layout => false }
      else
        format.html  { render :action => :index, :layout => false , :status => 500 }
      end
    end

  end

end
```

Include a JSON healthcheck for ELB which does not 500 if the app is up
user
```ruby
class HealthChecksController < ApplicationController

  def index
    @health_checks = HealthChecks.all

    respond_to do |format|
        response_hash =  { :action => :index, :layout => false }
        format.html do
            render HealthChecks.ok? ? response_hash :
                                      response_hash.merge(:status => 500)
        end
        format.json { render json: { health_checks: HealthChecks.ok? } }
    end

  end

end
```
assistant