Skip to content

Instantly share code, notes, and snippets.

@ruprict
Created August 12, 2012 12:21
Show Gist options
  • Select an option

  • Save ruprict/3331642 to your computer and use it in GitHub Desktop.

Select an option

Save ruprict/3331642 to your computer and use it in GitHub Desktop.
get '/js/riddle/:id/script.js' do
riddle = Riddle.get(params[:id])
content_type 'text/javascript'
render :str, riddle.js, :layout => false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment