Sha256: 4dd9eb0b7cf6e723510f63897ca47c62f69c159175ed169ba11755625671d246
Contents?: true
Size: 673 Bytes
Versions: 41
Compression:
Stored size: 673 Bytes
Contents
class Jets::WelcomeController < Jets::Controller::Base layout false internal true # # Use python until ruby support is added. # python :index if Jets::Commands::Build.poly_only? # Use python if poly only so we don't have to upload rubuy python :index else # TODO: When ruby support is relesed, switch to it only. def index homepage = "#{Jets.root}public/index.html" if File.exist?(homepage) render file: homepage else render plain: "The public/index.html file does not exist but the root route in config/routes.rb routes to this file. You probably want to update the root route." end end end end
Version data entries
41 entries across 41 versions & 1 rubygems