GeekedOut
GeekedOut

Reputation: 17185

HAML partial - error rendering the partial

I have this line of code:

  = render :partial => "views/influencers/disclosures/shared/list"

and I am getting this error:

Missing partial views/influencers/disclosures/shared/list with {:locale=>[:en, :en], :handlers=>[:haml, :erb, :builder], :formats=>[:html]}. Searched in:

and the partial I am trying to render is in this directory:

app/views/influencers/disclosures/shared/_list.html.haml

and I am trying to call this partial from a file located here:

app/views/mobile/disclosures/index.html.haml

any idea why it wouldn't get recognized and why this error is happening?

Thanks!!

Upvotes: 1

Views: 2219

Answers (1)

apneadiving
apneadiving

Reputation: 115511

Replace with:

= render :partial => "/influencers/disclosures/shared/list"

Upvotes: 2

Related Questions