I am using memcached.. and have the folllowing in my partial.

<%CACHE.fetch 'all_categories' do %>
<ul>
Category.all.each do |c|
<li><%= c.name %> </li>
end
</ul>
<%end %>

When I check in the irb console the "all_categories" key does get
populated.
So..CACHE.fetch 'all_categories' in irb does output the expected html
list.

But nothing gets outputted in my view.

I am guessing this is some sort of syntax error, what am I doing wrong?

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to