Skip to content

Instantly share code, notes, and snippets.

@wrburgess
Created March 31, 2012 20:41
Show Gist options
  • Save wrburgess/2268303 to your computer and use it in GitHub Desktop.
Save wrburgess/2268303 to your computer and use it in GitHub Desktop.
Set up a monitor page with no tracking script in Rails #rails #layouts #monitoring

##Create a boring view at app/views/static/monitor.html.erb

Monitoring Page

##Create a boring template at app/views/layouts/monitor.html.erb <title>IndyCar Laps</title> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> <%= csrf_meta_tags %> <%= yield %>

##Set up your controller file at app/controllers/static_controller.rb # GET /monitor def monitor render :layout => 'monitor' end

##Set up the route in your config/routes.rb file match 'monitor' => 'static#monitor'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment