Forum: Ruby on Rails Using caches_action ?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Erik (Guest)
on 2006-05-31 06:21
Hi

When I enable action caching in my controller with

  caches_action :view_thread

only the first part of my layout template is rendered (up to the yield
statement), and the development.log shows

Processing ForumController#view_thread (for 127.0.0.1 at 2006-05-31
03:13:19) [GET]
  Session ID: d6f7ef15f479250fd7e31e252d70f5ff
  Parameters: {"action"=>"view_thread", "id"=>"6",
"controller"=>"forum"}
Fragment read: localhost:3006/forum/view_thread/6 (0.00000)
Filter chain halted as
[#<Proc:0x034a2c08@C:/ruby/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:226>]
returned false
Completed in 0.01000 (100 reqs/sec) | DB: 0.00000 (0%) | 200 OK
[http://localhost/forum/view_thread/6]

Fwiw, I've changed environment.rb to enable caching (page caching works
fine) with

config.action_controller.perform_caching             = true

Dev environment (xp, ruby184, rails112)

Any ideas ?

Erik
Erik (Guest)
on 2006-05-31 17:45
Erik wrote:

>
> Dev environment (xp, ruby184, rails112)
>

Fwiw, rolling back to ruby182 did the trick
This topic is locked and can not be replied to.