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