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

Generator copy views at the wrong path #297

Open
illegalnumbers opened this issue Nov 11, 2016 · 2 comments
Open

Generator copy views at the wrong path #297

illegalnumbers opened this issue Nov 11, 2016 · 2 comments

Comments

@illegalnumbers
Copy link
Contributor

It seems that the blog views can't be altered when you copy over the views from the engine unless you modify the engine directly. For example, I wanted to add the 'btn' class on to the link with class of 'button' to get my styling. Since your layout yields to Rails I'm not sure I can get these to change and reflect appropriately since the mounted engines views are being taken instead of mine.

Or it might be midnight and I'm making a mistake somewhere.

@illegalnumbers
Copy link
Contributor Author

An easy fix is to just move the monologue views to the correct rails engine layout that would match the right path Rails needs to resolve when you generate views. ie. instead of generating under the blog/ directory, just move them to views/monologue. Then you won't have to have that layout check either in the config initializer and the views will work out of the box.

@jipiboily
Copy link
Owner

Yup, you're right, that's where they go. The generator needs to be fixed I guess.

@jipiboily jipiboily changed the title Unable to alter blog views Generator copy views at the wrong path Nov 11, 2016
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