Skip to content

Instantly share code, notes, and snippets.

@devonharless
Created September 23, 2010 03:27
Show Gist options
  • Save devonharless/593033 to your computer and use it in GitHub Desktop.
Save devonharless/593033 to your computer and use it in GitHub Desktop.
var attachment = <%=
{:name => 'Look at me Villainized!',
:href => url_for(''),
:description => "How about you try villainizing yourself in time for Halloween?",
:media => [{:type => 'flash',
:swfsrc => url_for("swf/StreamPlayer.swf?background_num=#{Rack::Utils.escape @entry.background_number }&villain_num=#{Rack::Utils.escape @entry.villain_number }&upload_photo_url=#{Rack::Utils.escape @entry.entry_preview.amazon_public_url(:main) }&#{Rack::Utils.escape @entry.flash_data}", :skip_facebook => true),
:imgsrc => @entry.entry_preview.amazon_public_url(:main),
:expanded_width => '460',
:expanded_height => '460'}]
}.to_json
%>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment