Created
February 15, 2009 04:01
-
-
Save nanodeath/64591 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
undefined method `state=' for #<Fiber:0x98d5820> | |
/home/max/Projects/writetogether/controller/news.rb:8:in `block in index' | |
#<Ramaze::Request | |
@params={} | |
@cookies={"_ramaze_session_id"=>"149c015a2ddd186fcd421e3595a79cae2d055197e9c1169b15cdcaa28f301a58"} | |
@env={"PATH_INFO"=>"/news", | |
"QUERY_STRING"=>"", | |
"REMOTE_ADDR"=>"127.0.0.1", | |
"REMOTE_HOST"=>"localhost", | |
"REQUEST_METHOD"=>"GET", | |
"REQUEST_URI"=>"http://localhost:7000/news", | |
"HTTP_HOST"=>"localhost:7000", | |
"HTTP_USER_AGENT"=>"Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.6) Gecko/2009020911 Ubuntu/8.10 (intrepid) Firefox/3.0.6", | |
"HTTP_KEEP_ALIVE"=>"300", | |
"HTTP_CACHE_CONTROL"=>"max-age=0", | |
"HTTP_VERSION"=>"HTTP/1.1", | |
"REQUEST_PATH"=>"/"}> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To change this template, choose Tools | Templates | |
# and open the template in the editor. | |
class NewsController < LoggedInController | |
def index | |
state = Ramaze::Fiber.current.state | |
slot1a = Fiber.new do | |
Ramaze::Fiber.current.state = state | |
data = render_template 'news' | |
Fiber.yield data | |
end | |
@slot1a = slot1a.resume | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment