I have a demonstration partial in app/views/app1/users similar to this this solution. I've already tried using the prepend_view_path as in the aforementioned solution, to no avail.
haml:
#demonstration
= f.semantic_fields_for :demonstration do |ud|
= render 'demonstration_fields', :f => ud
But I get this error:
Missing partial app1/_demonstration_fields, application/_demonstration_fields with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :haml]}. Searched in:
The only way to make it work is to pass the full path to render as follows:
= render 'app1/users/demonstration_fields', :f => ud
But this defeats the purpose of trying to avoid redundant code (e.g., specifying a full path) via prepend_view_path. Is there a way to avoid passing in the full path?