# HG changeset patch # User Edho Arief # Date 1352175910 -25200 # Node ID d100218b96c9e0ffe17f40ec199e3d26bb07d081 # Parent de4ce9ce1cc13128b24d387efe394f3b740f0b9d Disables csrf for pastes/show. diff -r de4ce9ce1cc1 -r d100218b96c9 app/views/layouts/application.html.erb --- a/app/views/layouts/application.html.erb Tue Nov 06 11:16:47 2012 +0700 +++ b/app/views/layouts/application.html.erb Tue Nov 06 11:25:10 2012 +0700 @@ -5,7 +5,9 @@ <%= html_title %> <%= stylesheet_link_tag "application", :media => "all" %> <%= javascript_include_tag "application" %> - <%= csrf_meta_tags %> + <% unless @skip_csrf %> + <%= csrf_meta_tags %> + <% end %> diff -r de4ce9ce1cc1 -r d100218b96c9 app/views/pastes/show.html.erb --- a/app/views/pastes/show.html.erb Tue Nov 06 11:16:47 2012 +0700 +++ b/app/views/pastes/show.html.erb Tue Nov 06 11:25:10 2012 +0700 @@ -1,4 +1,5 @@ <% provide :title, 'Show' %> +<% @skip_csrf = true %>