Skip to content

Instantly share code, notes, and snippets.

@stabenfeldt
Created September 2, 2014 12:11
Show Gist options
  • Save stabenfeldt/8b8a49b7d580238964cb to your computer and use it in GitHub Desktop.
Save stabenfeldt/8b8a49b7d580238964cb to your computer and use it in GitHub Desktop.
class TemplatesController < ApplicationController
skip_before_filter :authenticate_user!
#skip_authorization_check :template
def template
render :template => 'templates/' + params[:path], :layout => false
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment