{"issue":{"title":"Accessing flash","milestone":null,"user":{"id":108339,"login":"giates","url":"https://api.github.com/users/giates","avatar_url":"https://secure.gravatar.com/avatar/bcba347196f100958d726a7c38d1e081?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bcba347196f100958d726a7c38d1e081"},"created_at":"2011-01-04T15:58:00Z","labels":[],"state":"open","updated_at":"2011-12-20T15:19:06Z","id":506014,"html_url":"https://github.com/apotonick/cells/issues/32","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"closed_at":null,"body":"Hi,\r\n\r\nafter some times I'm retrying to use Rails cells...\r\n\r\nThe first cell I've created contains some logic to present flash messages (flash[:notice] / flash[:alert]) using jquery with fancybox but seems that flash object cannot be accessed from cell:\r\n\r\nundefined method `flash' for #<CommonCell:0xa656ecc>\r\n\r\nExtracted source (around line #1):\r\n\r\n1: <% if flash[:notice] || flash[:alert] -%>\r\n2:   <script type=\"text/javascript\">\r\n3:     $(document).ready(function(){\r\n4:       message = \"\"\r\n\r\nIs there any workaround to access flash object from cell ?\r\n\r\nMany thanks.","number":32,"url":"https://api.github.com/repos/apotonick/cells/issues/32","comments":6,"assignee":null},"comment":{"user":{"id":10406,"login":"apotonick","url":"https://api.github.com/users/apotonick","avatar_url":"https://secure.gravatar.com/avatar/0fe13386ba69a128e9fadc19ae9d96be?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"0fe13386ba69a128e9fadc19ae9d96be"},"created_at":"2011-12-20T15:19:06Z","updated_at":"2011-12-20T15:19:06Z","id":3220068,"body":"Fantastic example for using cells, draper and flash messages, @mateusz-sojka - we should start screencasting about Cells!","url":"https://api.github.com/repos/apotonick/cells/issues/comments/3220068"},"action":"created"}