search for: bad_on

Displaying 1 result from an estimated 1 matches for "bad_on".

Did you mean: bad_op
2012 Nov 29
3
Proposal: faragment cache with :if / :unless conditions
...be cached) and it would probably be more clean to have something like this (trivialized): <%= cache(@model, unless: content_cachable?(@model)) do %> <% if @model.render_good? %> <%= render ''good_one'' %> <% else %> <%= render ''bad_one'' %> <% end %> ... other tens of similar conditions <% end %> This may reveal some bad partial design I''m facing, but I''m curious to know what you guys think about it. -f -- You received this message because you are subscribed to the Google Gro...