From f1cf67412e4c36687a6bacdbdce3214e98ef71b4 Mon Sep 17 00:00:00 2001 From: Marcin Kulik Date: Sat, 18 Jul 2015 11:15:33 +0000 Subject: [PATCH] Fix embed script for private asciicasts (fixes #194) --- app/helpers/asciicasts_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/asciicasts_helper.rb b/app/helpers/asciicasts_helper.rb index 1f2eca2..8e413af 100644 --- a/app/helpers/asciicasts_helper.rb +++ b/app/helpers/asciicasts_helper.rb @@ -17,7 +17,7 @@ module AsciicastsHelper def embed_script(asciicast) src = asciicast_url(asciicast, format: :js) - id = "asciicast-#{asciicast.id}" + id = "asciicast-#{asciicast.to_param}" %().html_safe end