-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Receiving the following error only when using caching.
ActionView::Template::Error: undefined local variable or method `view_cache_dependencies' for #<#<Class:0x007fa2e4a3c008>:0x007fa2e9fd4510>
from /Users/jarrettgreen/.rvm/gems/ruby-1.9.3-p429@balancedcomp/gems/cache_digests-0.3.1/lib/cache_digests/fragment_helper.rb:22:in `fragment_for'
from /Users/jarrettgreen/.rvm/gems/ruby-1.9.3-p429@balancedcomp/gems/actionpack-3.2.17/lib/action_view/helpers/cache_helper.rb:36:in `cache'
from /Users/jarrettgreen/code/balanced-comp/app/views/scenario_entries/_scenario_entry.html.haml:1:in `_app_views_scenario_entries__scenario_entry_html_haml__1591820996871809986_70168843571460'
Using the following method in a model:
def build_html
render :partial => 'scenario_entries/scenario_entry',
:locals => {:scenario_entry => self, :@scenario => self.scenario},
:formats => :html
end
Partial looks like this:
-cache scenario_entry do
%tr.strong
%td=scenario_entry.employee.full_name_reversed
%td=scenario_entry.employee.position.title
%td{:colspan => 2}
#etc
Using
render_anywhere (0.0.8)
cache_digests (0.3.1)
Rails 3.2.17
Metadata
Metadata
Assignees
Labels
No labels