{"action":"created","issue":{"url":"https://api.github.com/repos/johnsonj/progressive_render/issues/19","repository_url":"https://api.github.com/repos/johnsonj/progressive_render","labels_url":"https://api.github.com/repos/johnsonj/progressive_render/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/johnsonj/progressive_render/issues/19/comments","events_url":"https://api.github.com/repos/johnsonj/progressive_render/issues/19/events","html_url":"https://github.com/johnsonj/progressive_render/issues/19","id":165704692,"number":19,"title":"DoubleRender Error","user":{"login":"taylor-a-barnette","id":6541290,"avatar_url":"https://avatars.githubusercontent.com/u/6541290?v=3","gravatar_id":"","url":"https://api.github.com/users/taylor-a-barnette","html_url":"https://github.com/taylor-a-barnette","followers_url":"https://api.github.com/users/taylor-a-barnette/followers","following_url":"https://api.github.com/users/taylor-a-barnette/following{/other_user}","gists_url":"https://api.github.com/users/taylor-a-barnette/gists{/gist_id}","starred_url":"https://api.github.com/users/taylor-a-barnette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylor-a-barnette/subscriptions","organizations_url":"https://api.github.com/users/taylor-a-barnette/orgs","repos_url":"https://api.github.com/users/taylor-a-barnette/repos","events_url":"https://api.github.com/users/taylor-a-barnette/events{/privacy}","received_events_url":"https://api.github.com/users/taylor-a-barnette/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-07-15T03:34:25Z","updated_at":"2016-07-27T05:14:06Z","closed_at":null,"body":"I have an action where I've placed progressive_render at the bottom of the action, per the gem instructions. However, earlier in the action I call render layout: 'foo'. This results in a DoubleRender error. Is there a workaround?"},"comment":{"url":"https://api.github.com/repos/johnsonj/progressive_render/issues/comments/235488636","html_url":"https://github.com/johnsonj/progressive_render/issues/19#issuecomment-235488636","issue_url":"https://api.github.com/repos/johnsonj/progressive_render/issues/19","id":235488636,"user":{"login":"taylor-a-barnette","id":6541290,"avatar_url":"https://avatars.githubusercontent.com/u/6541290?v=3","gravatar_id":"","url":"https://api.github.com/users/taylor-a-barnette","html_url":"https://github.com/taylor-a-barnette","followers_url":"https://api.github.com/users/taylor-a-barnette/followers","following_url":"https://api.github.com/users/taylor-a-barnette/following{/other_user}","gists_url":"https://api.github.com/users/taylor-a-barnette/gists{/gist_id}","starred_url":"https://api.github.com/users/taylor-a-barnette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylor-a-barnette/subscriptions","organizations_url":"https://api.github.com/users/taylor-a-barnette/orgs","repos_url":"https://api.github.com/users/taylor-a-barnette/repos","events_url":"https://api.github.com/users/taylor-a-barnette/events{/privacy}","received_events_url":"https://api.github.com/users/taylor-a-barnette/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T05:14:06Z","updated_at":"2016-07-27T05:14:06Z","body":"Sorry for the delay. And thanks again for working through this issue. I tested the branch - the solution works with the exception of one view in the app. I'm not sure if this is related to the gem, though. Here's what I get: \r\n\r\nNoMethodError at /\r\n==================\r\n\r\n> undefined method `to_html' for nil:NilClass\r\nDid you mean?  to_h\r\n               to_yaml\r\n\r\n () Users/taylorbarnette/.rvm/gems/ruby-2.3.0@cce_ruby_2.0/bundler/gems/progressive_render-cb1779665ca4\r\n/lib/progressive_render/rails/view_renderer.rb, line 19\r\n--------------------------------------------------------------------------------------------------------------------------------------------------------------\r\n\r\n\r\n``` ruby\r\n   14           context.render path\r\n   15         end\r\n   16         def render_fragment(path, fragment_name)\r\n   17           content = context.render_to_string template: path, layout: false\r\n   18           stripped = Nokogiri::HTML(content).at_css(\"div##{fragment_name}_progressive_render\")\r\n\r\n>  19           context.render plain: stripped.to_html\r\n   20         end\r\n   21       end\r\n   22     end\r\n   23   end\r\n```"}}
{"actor":{"display_login":"taylor-a-barnette"}}