On 1/15/07, Gokhan Arli
<rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:>
> Hello all,
>
>
> {routes.rb}
> ...
> map.connect '''', :controller => "site",
:action=> "home"
> ...
>
> {site_controller.rb}
> class SiteController < ApplicationController
> caches_page :portfolio, :home, :solutions, :aboutus, :contact
> ...
> end
>
>
> It creates every page in my cache directory portfolio.html,
> solutions.html, aboutus.html, contact.html EXCEPT home.html
>
> Is it me or routes or caching?
>
> My development settings are lighttp, rails edge, ruby 1.8.4.
>
> Thanks
> Gokhan
You should watch the logs, it will tell you when it''s caching
something. When you visit /foo, it writes /foo.html. If you visit /,
it writes /index.html. It doesn''t really matter what the action is
specifically, just the current url that''s used.
--
Rick Olson
http://weblog.techno-weenie.net
http://mephistoblog.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---