Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to change default path of templates directory? #35

Open
sdilshod opened this issue Jun 28, 2018 · 3 comments
Open

How to change default path of templates directory? #35

sdilshod opened this issue Jun 28, 2018 · 3 comments

Comments

@sdilshod
Copy link

Hi @radin-reth

I hold my templates in app/templates and when attempt to include partials inside that directory i'm getting error about "No such template 'v14/html/shared/region_select'" .

Is there way to change default template location?

thanks

@radinreth
Copy link
Contributor

Maybe you have to tell rails what path you are looking for:
let's try this prepend_view_path

class ArticlesController < ApplicationController
    prepend_view_path 'app/views/my_custom_theme_dir'
    ...
end

@sdilshod
Copy link
Author

I forked this repo and change source code. It have Railtie and i'm not find other solutions then editing source code. My templates are in the directory app/templates and how can i see source code of this gem included path app/views. My project in rails 4

@radinreth
Copy link
Contributor

Sorry for late reply,
I think gem thems_on_rails can solve your problem,
Feel free to try it.

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

No branches or pull requests

2 participants