Skip to content
This repository has been archived by the owner on Aug 26, 2024. It is now read-only.

MissingTemplate error rendering partial #11

Closed
eprothro opened this issue May 4, 2012 · 3 comments
Closed

MissingTemplate error rendering partial #11

eprothro opened this issue May 4, 2012 · 3 comments

Comments

@eprothro
Copy link

eprothro commented May 4, 2012

I saw in other comments on issue #5 that you were working on fallback for partials. Is this implemented and I'm doing something wrong, or is there just not an issue for tracking this?

@tscolari
Copy link
Owner

tscolari commented May 5, 2012

The issue #5 was resolved and closed. What error are you getting?

The last version of the gem should look for the .mobile partial, and if it doesn't exist for the .html one. This is default behavior if you do not explicit disable it, with the config method.

@eprothro
Copy link
Author

eprothro commented May 7, 2012

I have implemented a mobile view. This view has a layout that renders multiple partials before and after yielding to this view. Upon requesting the route, I get:

ActionView::MissingTemplate in Sessions#new

Showing /Users/eprothro/source/yv-web/app/views/layouts/application.mobile.haml where line #7 raised:

Missing partial /shared/head with {:handlers=>[:erb, :builder, :coffee, :haml], :formats=>[:mobile], :locale=>[:en, :en]}. Searched in:

  • "/Users/eprothro/source/yv-web/app/views"
  • "/Users/eprothro/source/yv-web/app/views"

@tscolari
Copy link
Owner

this is a duplicate of #5.
Please give the version 3.0 a try, there was some internal changes in the resolvers.
I'm closing all the resolver related issues before 3.0.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants