-
Notifications
You must be signed in to change notification settings - Fork 102
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
Mountable Engine #64
Comments
I never use it that context. Can you provide some context and errors messages? Maybe I can help you. Lucas Florio On Wednesday, August 15, 2012 at 12:04 AM, Yacobus Reinhart wrote:
|
there's no error message, the problem is the routes can't reach view in my engine, here is my engine.rb snipped code:
I decided to group view and assets by themes. each time i access the engine view, it could not find view file in app/themes/my_theme/views/shopping, it keeps pointing views to app/views/shopping. any idea? |
Are you sure the ThemesForRails.config block is being executed? |
You might also want to make sure your engine is loading the themes_for_rails routes too. |
Hi All, I did include themes_for_rails in my engine routes.rb, how i could know the ThemeForRails.config block is executed or not? I have also tested about: config.theme_for_rails.assets_dir = 'app/assets/:name' but still can't find my themes location. if i put config.themes_for_rails = 'app/assets/:name', automatically raise an error about can not produce string, doest it means the theme_for_rails configuration executed? I still have no idea, at the moment i revert back my view to main application. |
I would try a rake routes in your main app.. if that returns the TFR routes then your engine is loading that route which suggests that TFR is being loaded. I would also turn off the themes_routes_dir = 'assets' until you have it working as this is meant to work with the asset pipeline which will only muddy things for you right now. @lucasefe please let us know if I have misunderstood any of this. |
How to implement it on mountable engine? because i tested, it doesnt work. many thanks.
The text was updated successfully, but these errors were encountered: