Sha256: a95b20fa8ac641c9fb83954c4e3fe8391cab6be9e445920cf3bb32c22e1ef4d5
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
module Vanity module Rails module Dashboard def index render Vanity.template("_report"), content_type: Mime::HTML, layout: true end def chooses exp = Vanity.playground.experiment(params[:e]) exp.chooses(exp.alternatives[params[:a].to_i].value) render partial: Vanity.template("experiment"), locals: { experiment: exp } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vanity-1.0.0 | lib/vanity/rails/dashboard.rb |
vanity-0.4.0 | lib/vanity/rails/dashboard.rb |