Sha256: cc079b4b8a457c2a2445f049a152c65496c2acf9cddc9d5dfe0a37deee806a3e
Contents?: true
Size: 476 Bytes
Versions: 13
Compression:
Stored size: 476 Bytes
Contents
require_dependency "front_end_builds/application_controller" module FrontEndBuilds class AdminController < ApplicationController def index # We need to pass the url which the host app has mounted the # engine to into index.html.erb, so the ember app's router # will work appropriately. # Trim leading/trailing slash marks... @baseURL = request.fullpath[1..request.fullpath.length-2] render :index, layout: false end end end
Version data entries
13 entries across 13 versions & 1 rubygems